get_gravatar()
Get either a Gravatar URL or complete image tag for a specified email address.
get_gravatar(string $email[, string $s = 80 ][, string $d = 'mp' ][, string $r = 'g' ][, boole $img = false ][, array<string|int, mixed> $atts = array() ]) : string
Parameters
-
$email
: string
-
-
$s
: string
= 80
-
Size in pixels, defaults to 80px [ 1 - 2048 ]
-
$d
: string
= 'mp'
-
Default imageset to use [ 404 | mp | identicon | monsterid | wavatar ]
-
$r
: string
= 'g'
-
Maximum rating (inclusive) [ g | pg | r | x ]
-
$img
: boole
= false
-
True to return a complete IMG tag False for just the URL
-
$atts
: array<string|int, mixed>
= array()
-
Optional, additional key/value attributes to include in the IMG tag
-
source
-
Return values
string
—
containing either just a URL or a complete image tag