WordPress never makes any HTTP requests for gravatars, it just generates URLs to them.
You don’t really need to override function completely. You can filter get_avatar
hook and return different URL if email matches user with custom avatar set.
Related Posts:
- wp_enqueue_script adding conditional statement not working
- Check if first paragraph is an image, then show custom code right after it?
- If post author role is X
- Can a conditional statement apply to part of a slug?
- Add default content to posts in a specific category?
- is_front_page, is_page(‘slug’), is_page(id) not working
- Need help on creating If-statement for custom meta fields
- Loading Scripts on Specific Pages
- Condition function for is parent category?
- get_avatar() default image not working as of wp 3.5 [closed]
- Conditional Statement – Best Way to Remove Nav on Contact Page
- Proper syntax for simple conditional bloginfo language
- wordpress is_page() problem
- Location-Based Content
- Personalized message for each unique password-protected page
- Conditional Shortcode image display
- Change Woocommerce order button page on particular page
- Change a url / link if a user is logged in?
- to create own conditional tags for business directory in wp
- How to use “Cases” instead of “IFs” for conditional logic
- Which is the better way to write a conditional statement? [closed]
- Nested conditionals
- Is there a way to password-protect part of a post?
- if/Else have_posts Else fails to echo message to page
- Conditonal statement for iPad
- Return function only on certain pages
- How to write this conditional statement?
- Conditional for Custom Post Types
- Date-Based Conditional Tag
- Message box when accessed from iPad
- Show this code if user has previously left a comment
- Insert a conditional in the middle of a function to give it 2 different outcomes
- How can I use ‘edit_form_after_title’ conditionally?
- Force Log in to view a page
- Conditional loading of CSS for my plugin
- Looks like this if condition is not working [closed]
- Generating images from an array of categories
- WP conditional site logo and header block
- How to override get_avatar() function?
- How to know if the most recent article
- Widget logic conditional widget
- How to display image on condition that a selection has been made
- How to Conditionally Not Display a Link Based on Current URL?
- Allow users to only CREATE one single (custom) post
- If statement to check for post_content
- why is my custom loop failing?
- Conditional sidebar menu
- What is the best way to disable my WP website if the user has adblocker on? [closed]
- How to tie two conditions to one statement
- Create a page from different content blocks
- Content Restriction but allow public REST API
- Best collection of code for your 'functions.php' file [closed]
- How do test if a post is a custom post type?
- Enqueue Scripts / Styles when shortcode is present
- Where can I find a list of WordPress hooks?
- wp enqueue style on specific page templates
- How to override parent functions in child themes?
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Disable email notification after change of password
- Loading scripts only if a particular shortcode or widget is present
- Why isn’t is_page working when I put it in the functions.php file?
- Adding a second email address to a completed order in WooCommerce [closed]
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- How to override pluggable function in theme?
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- Override user authentication with external credentials
- Alternative to using get_avatar function?
- how to create a conditional content_width for a wordpress theme?
- How to override a function when isn’t at functions.php
- How to change user`s avatar?
- How can I determine if a post has an image attachment?
- Display navigation menu item conditionally based on user capabilities
- Set default avatar network-wide
- How do I place content on archive pages but not on main page?
- What should I do to make generated avatars different for anonymous comments?
- How to overwrite a JavaScript core function?
- How do I “replace a function via plugins” in WordPress?
- How does WordPress resolve permalinks internally?
- If Post Type equals, then display X content
- turn off new user registration emails
- Removing custom background and header feature in child theme
- How to display random users with avatars
- Display several random posts, but make sure a condition is met
- why plugins are loaded prior to pluggables
- Multisite Conditional (if blog_id?) in a page template?
- Custom user avatar in the WordPress users listing
- Show content after the first and second paragraph
- function triggered by “manage_users_custom_column” filter not working
- Overwriting Core WordPress Functions with Plugins
- Do all files in child theme override the parent?
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Add aditional class to get_avatar when showing image
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- How to filter get_avatar?
- WordPress 3.1 – How does one add sticky post capabilities to post types
- How do I override template-tags.php in twentyseventeen theme
- Editor access to plugin settings
- Using Heroku, need to have non-gravatar avatars, but not stored locally