WordPress hacks

Creation & Innovation

Moderator: Moderators

WordPress hacks

Postby praveen-r » Mon Aug 22, 2011 1:07 am

Remove WordPress admin bar
As you know, from Wordpress 3 onwards there is an admin tab showing in user side. Actually this is given for admin (only showing his system when he logged in) for manage things more easly. Even though some time this making confusion when a project is in testing phase. Me also faced some issues as QA people are pointing this as an error or they get some broken pages with its default search feature. Now I got a solution for remove this tab from user side. It is very easy just copy the below snippet to functions.php.

Code: Select all
add_filter('show_admin_bar', '__return_false');

That's it!! admin panel gone for ever!
praveen-r
 
Posts: 212
Joined: Mon Sep 01, 2008 1:47 am

Re: WordPress hacks

Postby janalaura » Thu Sep 01, 2011 7:57 am

praveen-r wrote:Remove WordPress admin bar
As you know, from Wordpress 3 onwards there is an admin tab showing in user side. Actually this is given for admin (only showing his system when he logged in) for manage things more easly. Even though some time this making confusion when a project is in testing phase. Me also faced some issues as QA people are pointing this as an error or they get some broken pages with its default search feature. Now I got a solution for remove this tab from user side. It is very easy just copy the below snippet to functions.php.

Code: Select all
add_filter('show_admin_bar', '__return_false');

That's it!! admin panel gone for ever!


I have also heard that, while undergoing my wordpress training. I bet this is just another added feature of admins.
janalaura
 
Posts: 11
Joined: Fri Jul 15, 2011 10:45 am
Tell us why you would like to become a WyseLabs Member: To gain more knowledge and to be part of this community


Return to Web Design

Who is online

Users browsing this forum: No registered users and 3 guests

cron