You can filter 'get_avatar'
:
add_filter( 'get_avatar', 'wpse_67657_new_avatar', 10, 5 );
function wpse_67657_new_avatar( $avatar, $id_or_email, $size, $default, $alt )
{
// create a new img element or …
$new = str_replace( 's=40', 's=80', $avatar );
$new = str_replace( 'avatar-40', 'avatar-80', $new );
$new = str_replace( " height="40" width="40"", " height="80" width="80"", $new );
return $new;
}
Filtering the size only is currently not possible.
Related Posts:
- Avatar picture does not display when using get_avatar
- How to Detect if I am on a bbpress ‘plugin’ page?
- How to change the text of link ‘Home’ in bbPress forum breadcrumb?
- How to create a custom nested loop in bbPress (WordPress + bbPress plugin)
- How to change role titles in Bbpress?
- bbPress or WordPress + forum plugin?
- BBpress error wp-init [closed]
- Where does bbPress store author info for anonymous users?
- how to edit bbp_forum_freshness_link() format
- BBPress private topics by default
- Conditional if statement ($post->ID == get_the_ID) not working
- How to add more fields to bbPress registration form
- bbPress replies list
- BBPress bbp_new_reply action not firing when user replies to embedded thread
- How to disallow participant from publishing topics(bbpress)?
- wp_delete_post() not working with BBpress replies
- How to display BBpress statistics?
- Trouble installing bbpress [closed]
- How to disable sidebar only in bbPress and not WordPress?
- How to get bbpress sticky topics
- How to show recents topics below the forum’s title (WordPress + bbPress plugin)?
- How to add ‘Views’ in the forums page of bbPress (plugin)?
- How do I remove certain fields from the forum edit my profile page?
- How can i show Cubepoints ranks/points in bbpress replies
- Arrange BBpress replies in reverse order
- Team Collaboration in WordPress
- Post and bbpress – link discuss on forum
- Setup login/register buttons for bbPress?
- pre_get_posts and BBPress in Swagger Theme
- what is the topic-view page’s name? in bbpress
- Suggestions to prepare a site which is 90% based on a plugin that’s still on beta stage?
- How to exclude one parent id from post_parent’ => ‘any’, in WordPress / bbPress?
- Scrolling on reply url
- Get rid of the word private in bbpress forums names
- How to add class to bbPress bbp_get_topic_author_link()?
- Add QuickTag in bbpress replies
- If post type = forum then breadcrumbs Home > Forums
- Connect WordPress comment moderation with bbPress Moderation plugin
- bbPress – Post count increases after every edit
- How to remove br and p tags from bbPress
- How to use the bbPress import tool
- bbpress plugin moderation
- bbPress plugin – How do I add a forum description?
- bbpress Not Showing: How to troubleshoot?
- bbPress – select a topic reply as “answer”
- bbPress is not displaying video player
- Show the parent forum in a topic with bbPress [closed]
- Unable to access bbPress forum pages though the content still there
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Integrate WordPress and bbpress profiles?
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- Add custom menu item using wp_nav_menu_items filter
- How to keep plugin translations after updates?
- Alternative to using get_avatar function?
- Seamless integration between WordPress and BBpress
- How to edit posts with the new wp_editor api?
- How to change user`s avatar?
- Set default avatar network-wide
- What should I do to make generated avatars different for anonymous comments?
- How to display random users with avatars
- How do I set up real anonymous posting in bbpress forums? [closed]
- how to redirect to a custom password retrieval page
- How to prevent spam users registering even with registration disabled
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Custom user avatar in the WordPress users listing
- How can I pass a variable to wp_ajax action?
- Add aditional class to get_avatar when showing image
- How to filter get_avatar?
- Using Heroku, need to have non-gravatar avatars, but not stored locally
- Frontend Simple Local Avatar upload
- Upload gravatar in WP profile?
- How to check if gravatar of user is the default’s one?
- Setting different width and height for gravatar
- Use local image for default avatar
- How to override Member’s Avatars in BuddyPress [closed]
- Wrong gravatar showing up?
- Rectangle avatars
- Alternative default avatar generator?
- How to get gravatar url alone
- Replace default avatar
- Inserting PHP before a menu element, while using the inbuilt menu function wp_nav_menu()
- How to change user avatar using REST API?
- Get only the author profile picture image url inside a loop
- Listing all users by their avatars in wordpress
- How to get the Role Name of the current user? (WordPress)
- How to replace any occurence of Gravatars with a local placeholder image?
- How to make gravatar.com avatars conditional?
- How to output nothing instead of default avatar?
- get the avatar url instead of an html img tag when using get_avatar?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- show author avatar
- How to get larger version of author avatar
- Displaying Logged-In User Name and avatar in WordPress Menu
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- how to speed up a complex wp_query?
- Arrange BBpress topics by created
- How to remove unused avatar uploads in buddypress [closed]
- Prompt users to Upload Avatar on Registration
- Syncing Avatars across multisite
- Assign a random avatar to every user?