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



get_avatar_url › WordPress过滤钩子

Since4.2.0
已弃用n/a
› apply_filters( 'get_avatar_url', $url, $id_or_email, $args )
参数: (3)
  • () url The URL of the avatar.
    Required: Yes
  • () id_or_email The avatar to retrieve. Accepts a user ID, Gravatar SHA-256 or MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
    Required: Yes
  • () args Arguments passed to get_avatar_data(), after processing.
    Required: Yes
定义在:
文档:

Filters the avatar URL.





源码

$args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args );