Skip to content

Instantly share code, notes, and snippets.

@iscat
Created May 18, 2013 05:02
Show Gist options
  • Save iscat/5603299 to your computer and use it in GitHub Desktop.
Save iscat/5603299 to your computer and use it in GitHub Desktop.
<?php
/* Add a default comment icon in Wordpress
------------------------------------ */
function add_default_avatar($avatar_defaults)
{
$icon = get_bloginfo('template_directory') . '/images/default-comment-icon.png';
$avatar_defaults[$icon] = 'Custom Default';
return $avatar_defaults;
}
add_filter('avatar_defaults', 'add_default_avatar');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment