Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Hide admin bar component for some users

@asianowl

Participant

Found the solution! It was written up in the documentation! HERE

For my needs, I filtered based on roles like so:

function my_remove_activity_menu(){
	if (current_user_can('special_role'))
	{
		global $wp_admin_bar;

		$wp_admin_bar->remove_menu('my-account-activity');
	}
}
add_action('bp_setup_admin_bar', 'my_remove_activity_menu',301);

Good luck everyone.

Skip to toolbar