We are making private groups without possibility of request membership. I remove the “request membership” button. But don’t can remove the “request-membership tab“ in the menu of the private group if you not are a member.
I try this without success:
function my_remove_em_nav() {
global $bp;
bp_core_remove_nav_item( 'request-membership' );
}
add_action( 'bp_init', 'my_remove_em_nav' );