WordPress at a glance
function is not described

rest_get_avatar_urls() WP 4.7.0

Retrieves the avatar urls in various sizes based on a given email address.

  • See: get_avatar_url()

No Hooks.

Return

Array. $urls Gravatar url for each size.

Usage

rest_get_avatar_urls( $email );
$email(string) (required)
Email address.

Code of rest get avatar urls: wp-includes/rest-api.php VER 5.0.3

<?php
function rest_get_avatar_urls( $email ) {
	$avatar_sizes = rest_get_avatar_sizes();

	$urls = array();
	foreach ( $avatar_sizes as $size ) {
		$urls[ $size ] = get_avatar_url( $email, array( 'size' => $size ) );
	}

	return $urls;
}