WPDev.one
Core Function
View Source on Trac ↗

get_avatar_data()

get_avatar_data( mixed $id_or_email, mixed $args = null )

Retrieves default data about the avatar.

Parameters 2 required

Name / Type Description
mixed

$id_or_email 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.

Required
array

$args { Optional. Arguments to use instead of the default arguments.

Required

Return Value

(array)
array { Along with the arguments passed in `$args`, this will contain a couple of extra arguments.

Function Information

Since Version
4.2.0
Source File
wp-includes/link-template.php
Advertisement