Function:
mp_core_get_avatar()
Purpose:
Get avatar tag at retina size (2x). This function is exactly the same as the WP default “get_avatar()” but returns image at 2x.
Usage Example:
mp_core_get_avatar( $id_or_email, 32 );
Parameters:
$id_or_email (string) The id or email of the user who’s avatar we want.
$size (integer) The size in pixels that this image should be at 1x.
Returns:
Returns a string containing an HTML img tag including the avatar image.