How do I hide/remove the admin bar that is displayed when a user with specific role is logged in? I figured I have to do something with remove_menu()
, but not exactly what and how.
2 comments
Comments are closed.
How do I hide/remove the admin bar that is displayed when a user with specific role is logged in? I figured I have to do something with remove_menu()
, but not exactly what and how.
Comments are closed.
Add the following to your
functions.php
file as detailed here.Disable Admin Bar for everyone:
Disable Admin Bar for everyone but administrators:
Disable WP Admin Bar for specific users via user id:
Here is a 6 lines code nugget that will remove the admin bar for non contributor users :
Put that in your function.php file or in your custom plugin.