Advertisement
hmbashar

How to Change the Default Gravatar on WordPress

May 18th, 2015
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. //***Custom Gravatar
  2. Main Post: http://www.pchelpcenterbd.com/wordpress-tips-12801
  3. **/
  4.  
  5. function pchelpcenter_custom_gravatar ($avatar_defaults) {
  6.      $myavatar = get_stylesheet_directory_uri() . '/images/defaultgravatar.png';
  7.      $avatar_defaults[$myavatar] = "PC HELP CENTER (BD)";
  8.      return $avatar_defaults;
  9. }
  10. add_filter( 'avatar_defaults', 'pchelpcenter_custom_gravatar' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement