The get_avatar
function is pluggable, meaning that you can define a function of your own having that name and completely overwrite the default function.
If you look at the source for the “Simple Local Avatars” plugin, that is exactly what it has done. get_avatar
in your code should be using the function defined by “Simple Local Avatars”.
“Simple Local Avatars” provides a simplified function, get_simple_local_avatar
, that you can use instead if you want.
Related Posts:
- Use Gravatar as fallback image if no local image is not found
- Convert User’s Avatar/Gravatar to a jpg or png on the Fly
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- show author image in posts
- Get attachment ID of author_meta image – Attachment Metadata
- Add aditional class to get_avatar when showing image
- Setting different width and height for gravatar
- Limit author image size
- Get author ID with attachment ID
- How do I get a post author’s image/avatar via RSS from another blog?
- How do I get a smaller size of an avatar image
- How to remove “Image Information” and “post date/author” from a media page?
- Author Avatar as default first image
- How to change image’s author via a function when using GravityForms uploader? [closed]
- Avatar picture is broken
- How to get attachements URL from author meta and display them?
- How to have a specific image show up for everyone who comments?
- Change the avatar ratio?
- How to load locally saved author photos based on author ID
- How to add avatar to authors list?
- How to change image type for specific size?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- add_image_size() zoom-crop
- Which are precisely the predefined image sizes?
- Adjust image caption within visal editor
- Change Image URL to a CDN
- Slider image issue in wordpress
- How to replace any occurence of Gravatars with a local placeholder image?
- Responsive Images – Add srcset attributes to custom Images Function
- Getting custom size image URL
- Retrieving images from a NextGEN gallery
- Loss of sharpness in jpg imported as header in twentyeleven
- Getting alt text of featured image
- Get image alt attribute just by image URL
- How to resolve – IE 6 ignores img “width” properties
- WordPress is stripping the Alt tag’s quote marks from images where Alt is not set, but leaving the word ‘alt’ creating problems for ADA compliance
- WordPress reduces the full size image and uses it as the original
- Show taxonomy list with taxonomy images ( SOLVED)
- get_children() not working properly – Only on one post?
- get the image of the post
- Is There A Way Of Using the_post_thumbnail() to Pull In A Specific Image From The Media Library
- ACF Image ID, echo the alt tag
- Change WordPress Media Manager
- How to stop images from being wrapped in tags?
- Output random (custom) image size
- WordPress crops images differently on retina screens?
- Out of memory error reporting
- Force users to display default Gravatars
- How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?
- Broken image links even though links are correct and images exist
- Move Image Captions Inside Link ( tag) if Added
- How to add an image to a custom url?
- Images not displayed when moving site to local
- Caption and title in img alt tag are the same?
- fetch images and videos
- Facebook og:image issues after https change [closed]
- How to use Facebox in WordPress theme?
- Mass crop images: Landscape images -> Portrait images
- Change image name during uploading sequentially
- Getting thumbnail of uploaded image
- Display image for first sticky post only
- Get all image IDs from the Media Library
- How to redirect homepage to actual URL?
- Can’t add image to site via php
- Cropped image file size larger than original, is it normal?
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Avatar picture does not display when using get_avatar
- Can I register a new thumbnail size and have it be an option in “Add Media”?
- Is it possible to get feature image url (full-size) from an image url of smaller size?
- How to make Custom Loop not crop featured images?
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- Is it possible to modify default image name suffix?
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- Background Image Does Not Display on Page
- Can’t fix corrupted images
- Deleted Image giving a 301
- WordPress append -1 to the image name
- wpdb function for filtering the images by title
- Link to products with the same image title (woocommerce)
- WordPress does not load most theme images
- There is an image embedded on my page that I can’t locate in order to delete. Please help me!
- Could creation of various image sizes cause slow form submission response?
- How to add featured image use HTML
- Correct color profile and saving? Thumbnail creation?
- Allow users to upload attachments to certain posts
- WordPress and Advanced Custom Fields and Flickity
- stop wordpress from resizing feature gif images
- Modify media file markup output
- Theme page headers and rotator images not assigned after website migration
- WPML – Change media uploader language
- WordPress Is Saving Original Image Only
- Display images from JS?
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- How to make an image bigger with wp_get_image_editor
- Post migration – images do not display
- Display Images from Array with wp_get_attachment_image() [closed]
- Orientation of featured image in post?
- Uncaught Error: Call to undefined function file_is_valid_image()
- The uploaded images are only full-size (original)