<?php
//DO NOT COPY THE ABOVE PHP tag -- change yourprefix_ in two locations
add_filter( 'pre_get_avatar_data', 'yourprefix_remove_gravatars_from_pinterest_choices', 10, 2 );
/**
* Add html5 atts on all avatars to remove from Pinterst choices
*/
function yourprefix_remove_gravatars_from_pinterest_choices( $args, $id_or_email ) {
$args['extra_attr'] = 'data-pin-no-hover="true" data-pin-nopin="true"';
return $args;
}