You can try this one:
function wp_ste_add_nopin_args( $args ) {
$extra_attr="nopin="nopin"";
$args['extra_attr'] = $extra_attr;
return $args;
}
add_filter( 'get_avatar_data', 'wp_ste_add_nopin_args', 999, 1 );
For further reading, please visit: https://developer.wordpress.org/reference/functions/get_avatar_data/
Related Posts:
- custom default avatar showing broken link
- Gender based user avatar
- How to filter get_avatar?
- How do I add a custom HTML attribute to get_avatar?
- Syncing Avatars across multisite
- Change admin avatar only (without Gravatar or plugin)?
- Inline-Table under TwentyTwelve not working
- Custom Avatars for WordPress Comments VIA Website URL?
- Running Gutenberg React in Development Mode
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- WordPress hook before inserting post into database
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- Custom Search Query
- Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor
- Removing fields from the Media Uploader/Gallery
- Managing Images for a WordPress Blog: Picasa or Flickr?
- How do I add Post Like and Bookmark Functionality to my WordPress Site?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- What is causing this error? “Warning: Invalid argument”
- How wp_ajax_nopriv since WordPress 3.1
- Modifying loop on a custom page, strange behaviour
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Show post page only if the user has bought a specific product
- Replace comment avatars and links at the same time
- custom headers for static home page and posts page
- How to redirect WooCommerce shop URL?
- Best way to implement a thumbnail-based gallery in WordPress?
- Why is my mod_rewrite not working?
- Show posts on a page based on a category and tag(s)
- Create simple Cookie Box for WordPress
- How to remove buttons from the WP Editor on the edit post page in the admin area
- Does wordpress prevent non wordpress pages from being allowed on the same domain?
- Different development environments (Mac & Windows)
- WordPress Locale Switching on Accept-Language Header
- How do I call in a category title on a category page in a child theme?
- Include custom JS without child theme
- WordPress media uploader – upload tabs not hiding
- how to convert Html block to dynamic widget?
- Is there a way to set the value and text for Select/Radio/Checkbox using More Fields?
- Custom Log In Screen – Disable password recovery [duplicate]
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- orderby in query_posts
- How to get every custom taxonomy names and urls?
- Problem with custom user meta field
- What are “best practices” for wp-config.php
- Instant install of wordpress
- Problem with theme activatation
- How to customize feed?
- Two description meta tags All in One SEO WordPress [closed]
- Create page as a file in my theme?
- Search URL parameters query [duplicate]
- digital alarm clock widget
- In WordPress 3.x, I can’t access posts from all blogs in the network
- WordPress Install Issue, Receive Warnings But Successful Install
- Changing the the_author_posts_link() hover title
- How to display page ids as page slug names?
- How to add custom ‘layout’ buttons to wordpress editor?
- How to request container_class from wp_nav_menu
- Fatal error Call to a member function insert() on a non-object [closed]
- change top banner content on specific page
- Is “get_template_part” hierarchy possible?
- Custom Register Link on Backend Form
- Prevent WordPress from automatically installing a new theme each year
- Dynamic Sections
- Create Miltiple Category Base
- customer specific email attachment
- How do I run a web app in my WordPress theme without the “wp-content/theme/…/webapp” in URL?
- Get /users/me details from WordPress backend
- mailchimp integration on a custom footer
- Can’t Customize WordPress Page
- Use Theme CSS in custom code
- How to show the hero of website when sending website link?
- Highly stylized pages
- How should I design subcategory login site?
- How do I change the button text color on my header?
- Replace featured image when shortcode is present
- Execute function with jQuery if widget added or removed?
- Check get_post value after wp-admin login
- My connecting URL form in html to PHP does not work
- Unable to write error_log output… but only from a certain function
- Multiple Owl Carousels on the same page with navigation problem
- Can I check who updated the static front page on WordPress and the time it was done
- Removing comma from ‘entry-date’ in Twenty-Sixteen theme
- call get_header() function from different theme
- Custom search results
- How to disable jQuery tabs when customizing the theme
- WordPress integration with Backbone or AngularJS
- Special characters showing in fallback font
- Custom options – register, defaults and delete empty fields (Settings API)
- Customize Admin Section
- Want home page to click through to two different page types
- add unique code required to register
- featured images – custom links
- How to create functions that affect only a specific user
- wp_rewrite not working on third level url
- how can i change the html and the css of my word press theme that I bought?
- I need a plugin in wordpress like google tasks [closed]
- Is it possible assign a secondary existing role to already existing one?
- Set custom banner image size with wp_customize