BuddyPress: Turn Off Cover Images
Disables cover image uploads for member profiles and groups, keeping profiles simple and saving storage.
Opens WPIDE on
Code
if ( ! function_exists( 'buddypress' ) ) {
return;
}
$wpide_bp_no_member_covers = true;
$wpide_bp_no_group_covers = true;
if ( $wpide_bp_no_member_covers ) {
add_filter( 'bp_disable_cover_image_uploads', '__return_true' );
}
if ( $wpide_bp_no_group_covers ) {
add_filter( 'bp_disable_group_cover_image_uploads', '__return_true' );
}
Notes
Set either variable to false to keep that kind of cover image.
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.