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]
- Integrate WordPress and bbpress profiles?
- How to change user`s avatar?
- Set default avatar network-wide
- Custom user avatar in the WordPress users listing
- 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
- Rectangle avatars
- How to get larger version of author avatar
- Arrange BBpress topics by created
- How to remove unused avatar uploads in buddypress [closed]
- Syncing Avatars across multisite
- Assign a random avatar to every user?
- Random Default Avatar Function
- WordPress and bbPress Login conflicts?
- The “Profile Picture” section just disappeared from my User Profile
- How to display user’s avatar on their profile page?
- Adding an Avatar to the Top Nav Bar
- Change wordpress default avatar with custom plugin
- Require tags for bbPress topics [closed]
- Buddypress update user avatar image via REST
- Change avatar on themed profile page
- How to filter bbPress replies (content)?
- How do I get a smaller size of an avatar image
- How to upload WP user avatar on woocommerce account page [closed]
- How to change users avatar with specific e-mail addresses
- Custom Field Repeating When Using foreach
- I can’t access my WordPress dashboard – shows Warning message [closed]
- How to make current user’s avatar + display name link to their profile?
- Anyway of specifying avatar height & width?
- Give users alternative/second avatar that is rectangle sized
- How to get all users that uploaded avatars or have gravatars? [closed]
- How do I pull avatar from post using BuddyPress? [closed]
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- Inline-Table under TwentyTwelve not working
- Using my own user table
- Common user login for two different wordpress installation and bbpress
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- How to make the following loop break/stop when it reaches 2 posts (custom post types called Topics)?
- Gender based user avatar
- How to stopping auto scrolling after submitting the form?
- How to enable truly anonymous posting in bbPress forums? [closed]
- WordPress User Gravatar images not displaying. Loading default instead
- WordPress editor, change code wrap (bbpress?)
- Where To Find bb_profile_data(); In bbPress?
- Display “a generated one [avatar] based on their e-mail address”
- get_avatar not working
- How do I to override login redirect on specific pages?
- list all authors outside of loop with photo from /uploads
- How do I add nopin=”nopin” to the default avatar?
- Cant edit profile from frontend
- Get_avatar filter hook not displaying custom avatar image on frontend
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress