rest_get_avatar_urls
rest_get_avatar_urls ( $id_or_email )
Parameters:- (mixed) id_or_email The avatar to retrieve a URL for. Accepts a user ID, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
See:Returns:- ((string|false)[]) Avatar URLs keyed by size. Each value can be a URL string or boolean false.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Retrieves the avatar URLs in various sizes.