Good day! I am looking for a way to solve that a user who doesn´t have the "shop_manager" role doesn´t appear the custom tab "searches" in his profile. But the other roles can see it. Could you help me?
$role = 'shop_manager';
if ( 'shop_manager' =! $role ) {
bp_core_remove_nav_item( 'busqueda' ); //name of slug
}
}
add_action( 'bp_actions', 'bpcodex_remove_member_tab_on_role' );```
Aucun commentaire:
Enregistrer un commentaire