The admin bar was introduced in WordPress 3.3. Many people find the admin bar helpful, but is it really needed for blog users that aren’t admins? When you are just a contributer, it is not really necessary so here is a simple piece of code to add to your functions.php file to enable the bar for admins only.

if (!current_user_can('manage_options')) {
add_filter('show_admin_bar', '__return_false');
}
Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358