Created
November 24, 2020 14:16
-
-
Save BhargavBhandari90/ec51d9f374a342c9028d708f0db30c88 to your computer and use it in GitHub Desktop.
Change Profile Tab Labels of BuddyPress/BuddyBoss
This file contains 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 | |
/** | |
* Change label to Followed for Suscriptions. | |
* | |
* @return void | |
*/ | |
function bb_forum_profile_menu_tabs() { | |
// Handle fatal error in case of plugin not available | |
if ( is_admin() || function_exists( 'buddypress' ) ) { | |
return; | |
} | |
buddypress()->members->nav->edit_nav( | |
array( | |
'name' => esc_html__( 'Followed', 'default' ), | |
), | |
'followed', | |
'forums' | |
); | |
} | |
add_action( 'bp_setup_nav', 'bb_forum_profile_menu_tabs', 201 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment