Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Categories

  • WordPress Bits (149)
  • Uncategorized (11)
  • Scripts (5)
  • Tidbits (5)
  • Fun (3)

Tags

  • wordpress (30)
  • administration (16)
  • plugin (9)
  • free download (8)
  • functions.php (8)

Year

  • 2018 (8)
  • 2016 (2)
  • 2015 (4)
  • 2014 (19)
  • 2013 (11)

Tag: avatar

Add Option to Default Avatars List

If you’re not thrilled with the provided options for a default avatar, you can use this to quickly add your own image to the list.

add_filter( 'avatar_defaults', 'addavatar' );
function addavatar ( $avatar_defaults ) {
    $avatar_defaults[ 'http://placekitten.com/512/512' ] = 'Placekitten';
    return $avatar_defaults;
}
Posted on March 16, 2011March 1, 2012Categories WordPress BitsTags avatarLeave a comment on Add Option to Default Avatars List
Proudly powered by WordPress