raunak-gupta
10/27/2016 - 10:30 AM

Change the Default Gravatar Button

Change the Default Gravatar Button

<?php

add_filter( 'avatar_defaults', 'newgravatar' );

function newgravatar ($avatar_defaults) {
    $myavatar = site_url() . '/img/blog_noPhoto.jpg';
    $avatar_defaults[$myavatar] = "Default Avatar";
    return $avatar_defaults;
}