Skip to content

Instantly share code, notes, and snippets.

@BhargavBhandari90
Created November 24, 2020 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BhargavBhandari90/ec51d9f374a342c9028d708f0db30c88 to your computer and use it in GitHub Desktop.
Save BhargavBhandari90/ec51d9f374a342c9028d708f0db30c88 to your computer and use it in GitHub Desktop.
Change Profile Tab Labels of BuddyPress/BuddyBoss
<?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