You can use the get_avatar
filter to change the output or avatar_defaults
to add new image that can be placed on your server.
Here is an example code for adding new avatar that you can set as default from the Settings > Discussion page.
add_filter( 'avatar_defaults', 'add_new_gravatar_image' );
function add_new_gravatar_image($avatar_defaults) {
$myavatar="http://yoursite.com/image.png";
$avatar_defaults[$myavatar] = "Default Gravatar";
return $avatar_defaults;
}
And if you want to change the output, you have an example on the documentation page for get_avatar.
Related Posts:
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- How to check if gravatar of user is the default’s one?
- Setting different width and height for gravatar
- How to get gravatar url alone
- Replace default avatar
- Listing all users by their avatars in wordpress
- get the avatar url instead of an html img tag when using get_avatar?
- Assign a random avatar to every user?
- get_avatar() default image not working as of wp 3.5 [closed]
- Force users to display default Gravatars
- Which Function Displays The Post Authors Gravatar
- Gravatar – Default IMG
- Adding avatars/gravatar to a WordPress blog
- WordPress User Gravatar images not displaying. Loading default instead
- Broken Gravatar images in comments
- Alternative to using get_avatar function?
- Custom user avatar in the WordPress users listing
- Using Heroku, need to have non-gravatar avatars, but not stored locally
- Upload gravatar in WP profile?
- Use local image for default avatar
- Wrong gravatar showing up?
- Alternative default avatar generator?
- How to replace any occurence of Gravatars with a local placeholder image?
- show author avatar
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Prompt users to Upload Avatar on Registration
- Replace comment avatars and links at the same time
- Display avatar of user profile when logged in
- Cannot get local avatars to show [closed]
- How to restore $args for get_avatar custom “class”?
- Use Gravatar as fallback image if no local image is not found
- How to change avatar of the comment author using comment ID?
- Displaying avatar of a user
- get_avatar won’t show uploaded avatar, only default gravatar
- Change wordpress default avatar with custom plugin
- custom default avatar showing broken link
- Disable Gravatars in WordPress
- Conditional avatar
- Remove hovercard for only certian gravatars
- How to get authors avatar
- Change the “Default Avatar” admin option via functions.php
- show list of latest comments for each post in a loop
- How do I accesss gravatar?
- How do I get a post author’s image/avatar via RSS from another blog?
- How to change users avatar with specific e-mail addresses
- Custom Field Repeating When Using foreach
- Return WP avatar inside a function
- Hexagon avatar with get_avatar()
- Avatar picture does not display when using get_avatar
- Anyway of specifying avatar height & width?
- How to get all users that uploaded avatars or have gravatars? [closed]
- Simple Local Avatar Plugin
- How to give users a fixed gallery of avatars to choose from?
- Gender based user avatar
- get_avatar_url() how to reset the default image
- get_avatar() returns image with margin-bottom
- WordPress shows admin’s avatar after editing a comment
- Show custom default avatar instead of gravatar
- WP User Avatar preview for users
- Retrieve meta_value from add_comment_meta
- get_avatar not working
- How to display user’s avatar on the top of main menu in WordPress admin panel?
- list all authors outside of loop with photo from /uploads
- How to load locally saved author photos based on author ID
- How to add avatar to authors list?
- How do I add nopin=”nopin” to the default avatar?
- Convert User’s Avatar/Gravatar to a jpg or png on the Fly
- Adding custom avatar field to comments
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Replace Gravatar with uploaded images?
- What should I do to make generated avatars different for anonymous comments?
- Add aditional class to get_avatar when showing image
- Displaying Logged-In User Name and avatar in WordPress Menu
- How to Add a Random Custom Gravatar in the WordPress Comments?
- How to link avatar and nickname to profile
- custom avatar removal
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- WordPress Gravatar filter is removing my custom attributes
- Setting the profile picture from another field
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- Gravatar not showing when calling users details
- Getting the current author (it has changed) of a post, not the original author
- Which core file is responsible for gravatars?
- Best way to tell if a comment is from a user?
- How to set custom avatar for users?
- How can I display other user avatars on an author profile page?
- Custom avatars in wordpress comments?
- Change admin avatar only (without Gravatar or plugin)?
- Moving the WordPress dashboard avatar over the admin menu
- How to use author’s avatar as Facebook post preview image when a single post is shared
- Gravatar always shows default image
- How to show avatar of current logged in user in a widget
- Avatar picture is broken
- How is it possible to current user info on page in WordPress?
- Array for WordPress Avatar Size and Class
- How to get User Avatar Image with link to Author and User name in Html Title tag?
- User avatar-ACF fields
- How to have a specific image show up for everyone who comments?
- Change the avatar ratio?
- How can I changing or replace user’s avatar without plugins?