O_o it is very difficult for me, but “activity” was just an example, If I want to remove a no default option? For example “docs”.
In my buddypress show “docs” because I installed BuddyPress Docs plugin.
function bpfr_remove_nav_tabs() {
bp_core_remove_nav_item( 'docs' );
// and so on for each item you want to remove
}
add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );
I have created the bp-custom.php inside plugin folder.
then I have added this code between php
function bpfr_remove_nav_tabs() {
bp_core_remove_nav_item( 'activity' );
// and so on for each item you want to remove
}
add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );