Created
June 9, 2020 10:40
-
-
Save BhargavBhandari90/dfae2a4519d14b9b3c95b46a022725be to your computer and use it in GitHub Desktop.
Remove tabs from user profile for BuddyBoss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove tabs from user profile. | |
*/ | |
function remove_profile_nav() { | |
// Prevent fatal error if plugin is not available. | |
if ( ! function_exists( 'bp_core_remove_nav_item' ) ) { | |
return; | |
} | |
// Remove blog tab from user profile. | |
bp_core_remove_nav_item( 'blog' ); | |
} | |
add_action( 'init', 'remove_profile_nav', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment