Hi there, @rachelflara !
I hope you are having a great day!
Thank you very much for your query. Unfortunately, it is not possible to hide a profile menu item from a specific role out of the box. However, this really sounds like a very nice idea for the plugin which is why I’ve added it as a feature request. I hope I can come up with this soon in an update.
In the meantime, you can use a code snippet like this:
function exclude_tab(){
global $bp;
if ( bp_current_user_can( 'contributor' ) ) {
bp_core_remove_nav_item( 'test' );
}
}
add_action( 'bp_init', 'exclude_tab', 15 );
In the above example, you can replace contributor
with your preferred user role and test
with the slug of your preferred profile menu item.
Hope this helps.
Regards,
Nahid