Hide Front end Admin bar for simple users
-
Hello,
I was trying to hide the Admin bar in the front-end (website) for my users but still show it in the back-end (wp-admin) but i didn’t find any options.
I ended up using the following code snippet found in the WordPress function reference which worked OK:
if ( ! current_user_can( 'manage_options' ) ) { add_filter('show_admin_bar', '__return_false'); }Nevertheless i wanted to report it in order to include that option in your plugin which is already powerful (or point me to where it is in case i missed it).
In the “Global options” there is an option to disable Admin bar but works for both front and back-end, so i suggest to give the option to disable either, i.e. Admin Bar Back end or Admin Bar Front end.
For the record, if i go to “Admin Bar Front end Options” and disable all the options there, there will still be a blank space which is actually an empty admin bar.
Kind regards
The topic ‘Hide Front end Admin bar for simple users’ is closed to new replies.