get_avatar Wordpress function


Retrieve the avatar for a user who provided a user ID or email address.



(int|string|object) $id_or_email A user ID, email address, or comment object
(int) $size Size of the avatar image
(string) $default URL to a default image to use if no avatar is available
(string) $alt Alternative text to use in image tag. Defaults to blank

Return Type:

(string) <img> tag for the user's avatar

Define At:


Wordpress Reference URL:

0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×