Revision: 29052
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 20, 2010 06:50 by math89
Initial Code
function add_custom_gravatar ($avatar) { $custom_avatar = get_bloginfo('template_directory') . '/images/name-of-your-custom-gravatar.jpg'; $avatar[$custom_avatar] = "Gravatar name to be shown in the WordPress settings"; //change this name to your preferences return $avatar; } add_filter( 'avatar_defaults', 'add_custom_gravatar' );
Initial URL
Initial Description
Add the following code to the end of the functions.php file. Et voilà !
Initial Title
How to Set Your Own Default Gravatar in WordPress
Initial Tags
wordpress
Initial Language
PHP