Hi!
I’d like to know how can I hide the admin bar to other users which role is not a subscriber.
I’ve seen that in Discussion Board –> Settings –> General, there is a checkbox to do that “Prevent wp-admin access” but by default only for subscribers. How can I added other roles?
Hi there,
Are you wanting to remove it from specific roles or all roles?
There are a number of ways in which you can do this. The two most common ways are adding a filter to your functions.php file via PHP:
add_filter('show_admin_bar', '__return_false');
Or using CSS:
#wpadminbar { display:none !important;}
This could be added to the WordPress customizer which allows you to add custom CSS rules.
Both above methods will remove it for all users.
Let me know if you want to remove it from specific roles?
Thanks,
Matt
Thanks
I'd like to remove for author role
all users except Administrator