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]
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- What should I do to make generated avatars different for anonymous comments?
- How do I set up real anonymous posting in bbpress forums? [closed]
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Wrong gravatar showing up?
- Alternative default avatar generator?
- How to get gravatar url alone
- get the avatar url instead of an html img tag when using get_avatar?
- Displaying Logged-In User Name and avatar in WordPress Menu
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Prompt users to Upload Avatar on Registration
- How do I find the bbpress forum ID for a forum in a buddypress group?
- get_avatar() default image not working as of wp 3.5 [closed]
- Cannot get local avatars to show [closed]
- Can’t Find BBPress data in Database
- BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything
- How to restore $args for get_avatar custom “class”?
- How to find a callback attached to a bbpress hook?
- How to link avatar and nickname to profile
- What is best forum script available to integrate with wordpress?
- Displaying avatar of a user
- How to export bbPress (forums, topics, replies) and all users?
- custom avatar removal
- Responsive Author Style in BBpress?
- Setting the profile picture from another field
- BBPress changing default group activity
- custom default avatar showing broken link
- How to output topics and replies in bbpress as table?
- BuddyPress/bbpress: There was an error when creating the topic
- How do I accesss gravatar?
- How can I display other user avatars on an author profile page?
- Gravatar – Default IMG
- Custom avatars in wordpress comments?
- Any Good WordPress Themes Compatible With The BBPress Plugin? [closed]
- Change admin avatar only (without Gravatar or plugin)?
- how to set parent forum link to menu page?
- How to show avatar of current logged in user in a widget
- how to use custom post types collectively integrated with each other
- get_avatar() is not working in my custom theme
- Importing a Google Group to bbPress
- Array for WordPress Avatar Size and Class
- Hide BBPress create topic on one page
- User avatar-ACF fields
- redirect after account activation for forum using bbpress and buddypress
- How to have a specific image show up for everyone who comments?
- Custom Post Types and Posts are mixed
- WP User Avatar preview for users
- Migrate bbpress content to posts
- How can a user login on a wordpress page?
- How to enable truly anonymous posting in bbPress forums? [closed]
- How to load locally saved author photos based on author ID
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments
- set a Gravity Forms uploaded image as a user’s avatar