wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_get_avatar_data › WordPress过滤钩子

Since4.2.0
已弃用n/a
apply_filters( 'pre_get_avatar_data', $args, $id_or_email )
参数: (2)
  • (array) $args Arguments passed to get_avatar_data(), after processing.
    Required: Yes
  • (mixed) $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
    Required: Yes
定义在:
文档:

Filters whether to retrieve the avatar URL early.

Passing a non-null value in the 'url' member of the return array will effectively short circuit get_avatar_data(), passing the value through the {@see 'get_avatar_data'} filter and returning early.





源码

$args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email );