Glossary Term
get_avatar_data()
get_avatar_data() — Retrieves default data about the avatar.
Inputs: $id_or_email (mixed): 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. $args (array): Optional. Arguments to use instead of the default arguments. Field $size (int): Height and width of the avatar in pixels. Default 96. Field $height (int): Display height of the avatar in pixels. Defaults to $size. Field $width (int): Display width of the avatar in pixels. Defaults to $size. Field $default (string): URL for the default image or a default type.
Returns array: Along with the arguments passed in $args, this will contain a couple of extra arguments. Field $found_avatar (bool): True if an avatar was found for this user, false or not set if none was found. Field $url (string|false): The URL of the avatar that was found, or false.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
