Thanks for the great tip from our client, Mike Henry Sr. at LeadChangeGroup, for an alternative way to provide a custom avatar instead of using the default “mystery-man”. Here is our our original post on swapping out the image file itself.
Full Code Below (registered members only):
[labprotect (Registered,Subscriber,LabSecrets)]
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo(‘template_directory’) . ‘/images/labrats-gravatar.jpg’;
$avatar_defaults[$myavatar] = "LabSecrets – Booyah!";
return $avatar_defaults;
}








