Added By: Prem Tiwari | Last Updated:
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.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari