Posted By

PM-Webdesign on 10/08/10


Tagged

wordpress Gravatar


Versions (?)

Standard Gravatar in Wordpress ändern


 / Published in: PHP
 

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

Code in functions.php einfügen

  1. add_filter( 'avatar_defaults', 'newgravatar' );
  2.  
  3. function newgravatar ($avatar_defaults) {
  4. $myavatar = get_bloginfo('template_directory') . '/images/gravatar.gif';
  5. $avatar_defaults[$myavatar] = "WPBeginner";
  6. return $avatar_defaults;
  7. }

Report this snippet  

You need to login to post a comment.