I have a WordPress site, but not using for blog. I will try the following code in functions.php to stop loading gravatar in my site but it's not working.
function __default_local_avatar() {
// this assumes default_avatar.png is in wp-content/themes/active-theme/images
return '';
}
add_filter( 'pre_option_avatar_default', '__default_local_avatar' );
Is any other way to stop loading gravatar in my site?
Thanks Advance
Try to disable Gravatar images
Go to Settings -> Discussion -> Scroll down till you reach the bottom of the page in the Avatars Section -> Click to disabled Show Avatars and finally press the Save Changes button.