get_avatar_url


get_avatar_url ( $id_or_email, $args = null )

Parameters:
  • (mixed) $id_or_email The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
  • (array) $args { Optional. Arguments to return instead of the default arguments.
Returns:
  • (false|string) The URL of the avatar we found, or false if we couldn't find an avatar.
Defined at:

Description

Retrieves the avatar URL.

Related Functions

get_avatar, rest_get_avatar_urls, get_avatar_data, get_dashboard_url, get_rest_url

Top Google Results

User discussions

wpseek mobile