BuddyPress: Don't Load Gravatar for Member Avatars
Stops BuddyPress from requesting Gravatar images for members without an uploaded photo and uses the local mystery-person image instead, for privacy and speed.
Opens WPIDE on
Code
if ( ! function_exists( 'buddypress' ) ) {
return;
}
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );
Notes
Members who upload their own profile photo are not affected.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.