disable admin-bar search field for specific roles
I would like to disable the admin bar search field when certain users, belonging to specific roles are logged in. I would like to keep the search field available for the role ‘admin’, but not others.
This post tells me how to remove the admin bar completely, but doesn’t give any info regarding how to selectively remove elements of it.
Does anyone have experience with this?