You can use the get_avatar
filter to modify the output of the image tag and add your HTML attribute
return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt );
$avatar : Image tag for the user's avatar.
You can use the get_avatar
filter to modify the output of the image tag and add your HTML attribute
return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt );
$avatar : Image tag for the user's avatar.