get_avatar Wordpress function


Description:

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


Syntax:


Arguments:

(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:

wp-includes/pluggable.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_avatar


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