You can use the get_avatar
filter to modify the output of the image tag and add your HTML attribute
return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt );
$avatar : Image tag for the user's avatar.
Related Posts:
- custom default avatar showing broken link
- Gender based user avatar
- How do I add nopin=”nopin” to the default avatar?
- Best Practices for Regression Testing WordPress Websites?
- Custom Walker: how to get ID in function start_lvl
- How to include own css on wordpress tinymce editor?
- What is true chmod for WordPress?
- wp_trim_words() does not trim the_content() in WordPress
- How can I create an alternative home page?
- How to Save Different Usermeta Fields According to User Role?
- wp_get_archives for a specific category?
- Using WordPress functions on other sites
- Preventing Search Engines Indexing Pages 2, 3 and More?
- Create a customizable child theme
- Custom image size not selectable in uploader
- where can i add custom script to stop header video from autoplay
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- How to merge all my pages into one, while keeping a menu bar?
- Outputting Page Content in Two Places
- How to use get_option() without any filter?
- Is it possible to replace PHP with NodeJS?
- Post Thumbnail help
- Hide custom field if empty
- Admin Panel – Custom Menu Sub-Item LINK
- Add custom user profile field to default WordPress MultiSite registration form
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How to customize core admin pages within a theme?
- URLs and navigation in custom themes
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Automatically check parents (in a taxonomy) when child is selected
- Adding custom field in all widgets, but at the top of the form, in admin area
- Load MediaPlayerElement after Infinity Scroll loads more posts
- Always logged in even if remember me is unchecked?
- 404 (category, pages, archives) when using custom rewrite rules
- How do I remove a customiser option from a parent theme in a child theme?
- Keep Title and Description always
- Your thoughts on the interaction with one custom database table from WP?
- Is there a way to override require_once of the main theme on the child theme?
- Make RSS feed only accesible by Mailchimp
- Changer numbers of columns in woocommerce shop
- WP custom routing does not work
- Best Practice for Displaying Categorized Posts on Front Page
- Use custom header as WordPress header
- I tried to change my URL and ended up losing access to my site? I went into general settings and changed both WordPress URL and Site URL
- How do I modify the size of the text in my page titles?
- How to create “custom page types” with different custom fields in them?
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Grabbing a data from wp_usermeta
- wordpress shortcode not working
- WordPress Code Snippet to count total posts by author
- How To Style Links in Content Area With Tag Automatically?
- Meta Tags by Meta Box
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Get whole linked with wp_list_pages
- Force WordPress to load a specific template
- Custom Same Page Search
- Inline-Table under TwentyTwelve not working
- Echo the Last Child Taxonomy only (not parents)?
- Allow a subscriber to be an author and view only his post
- Troubles about insering a POST with a SQL query, post_status
- How to activate flash cards
- Transferring theme and imported post attachments
- Personalized Gallery what are my options?
- Trying to use .htaccess to redirect /profile to /login-2?action=profile
- Embed Latest Track (Dynamic Updating) SoundCloud
- What is my error trying to create a new table in the database?
- How to add a template – so that i can choose a different menu for some pages
- Allow WP users to sort search result on a videos site
- Javascript Tooltip not fully working on my wordpress page
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- bulk generate wp taxonomy tags from wp title with self php script
- Structure of post types for TV Shows and episodes
- Build custom pdf from users choices
- Show Header When Not In Iframe
- Background setting isn’t applied to entire sidebar height
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Function to query by custom field and category
- Confused about customising widgets
- Custom user fields validation on registration
- Pre_Get_Posts order DESC not registering
- Changes in comments.php in the child theme does not show up on the site
- Share user access between two wordpress sites
- how to modify request to get_template_part()?
- Adding page Title in a custom coded page
- Reached end of document without finding – using mod_pagespeed
- Getting Custom Field value in WP_Query
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Loop display only 5 posts
- Help needed renaming custom post
- Custom Post want button to add image and save in Postmeta
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data
- Sort Search Results in Order of/by Character @ count (9) of post(s) title. (Ocean-WP theme)
- Is it possible assign a secondary existing role to already existing one?
- Set custom banner image size with wp_customize