wpseek.com
A WordPress-centric search engine for devs and theme authors



get_avatar_url › WordPress Filter Hooks

Since4.2.0
Deprecatedn/a
apply_filters( 'get_avatar_url', $url, $id_or_email, $args )
Parameters: (3)
  • (string) $url The URL of the avatar.
    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
  • (array) $args Arguments passed to get_avatar_data(), after processing.
    Required: Yes
Defined at:
Codex:

Filters the avatar URL.





Source

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