Return to Snippet

Revision: 57993
at June 20, 2012 04:31 by bitsculptor


Initial Code
add_filter( 'avatar_defaults', 'newgravatar' );  
  
function newgravatar ($avatar_defaults) {  
    $myavatar = get_bloginfo('template_directory') . '/images/buildinternet-gravatar.jpg';  
    $avatar_defaults[$myavatar] = "Build Internet";  
    return $avatar_defaults;  
}

Initial URL
http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/

Initial Description
this is an easy function to add a gravitar to wordpress.

Initial Title
Wordpress gravitar addons

Initial Tags
wordpress

Initial Language
PHP