Hide admin bar component for some users
I have a website where members are registered with one of two roles. For one of the roles, I want to hide the ‘activity’ component. I was able to remove the component for the user navigation menu using
bp_core_remove_nav_item( 'activity')but the link still shows up in the admin bar.
Could you someone please help point me in the right direction? I need to hide the ‘activity’ component from user with role A and leave it as is for user with role B.
$wp_admin_bar -> remove_menu('activity')but it didn’t work.
- The topic ‘Hide admin bar component for some users’ is closed to new replies.