Used By
Used By | Description |
---|---|
wp-includes/pluggable.php: get_avatar() | Retrieve the avatar |
Allows the HTML for a user’s avatar to be returned early.
Passing a non-null value will effectively short-circuit get_avatar(), passing the value through the ‘get_avatar’ filter and returning early.
(string|null) HTML for the user's avatar. Default null.
(mixed) The avatar to retrieve. Accepts a user_id, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
(array) Arguments passed to get_avatar_url(), after processing.
Version | Description |
---|---|
4.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_avatar