Hi friends, hope you are doing good! In today’s tutorial, I am going to share how to disable cover image for BuddyPress group and user profiles.
If you want to remove the option of uploading the cover images for your BuddyPress group and user profiles, then the below 2-line code will do this for you.
Add the following code into your functions.php or bp-custom.php file.
* disable cover image for BuddyPress group and user profiles
//disable the group's profile cover image
add_filter( 'bp_is_groups_cover_image_active', '__return_false' );
//disable the user's profile cover image
add_filter( 'bp_is_profile_cover_image_active', '__return_false' );
Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.