Return to Snippet

Revision: 33452
at October 8, 2010 22:09 by PM-Webdesign


Initial Code
add_filter( 'avatar_defaults', 'newgravatar' );

function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/images/gravatar.gif';
$avatar_defaults[$myavatar] = "WPBeginner";
return $avatar_defaults;
}

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description
Code in functions.php einfügen

Initial Title
Standard Gravatar in Wordpress ändern

Initial Tags
wordpress

Initial Language
PHP