Reply To: Sub Navigation renaming
This is for the admin bar:
function custom_adminbar_titles() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
'id' => 'my-account-groups-memberships',
'title' => 'new title here',
)
);
}
add_action( 'wp_before_admin_bar_render', 'custom_adminbar_titles' );
This is for profile menu:
function change_profile_submenu_tabs(){
global $bp;
$bp->bp_options_nav['groups']['my-groups']['name'] = 'new name here';
}
add_action('bp_setup_nav', 'change_profile_submenu_tabs', 999);