X

Disable the admin bar completely

Clef Two-Factor Authentication review from our experts

Adding this snippet to the functions.php of your wordpress theme will completely disable the wordpress admin bar. You may hate the admin bar or you may love the admin bar either way you may have a need to remove it enjoy!


<?
        add_filter( 'show_admin_bar', '__return_false' );
?>

Comments  Leave a Reply

  1. This is another solution for wp 3.4
    remove_action( ‘in_admin_header’, ‘wp_admin_bar_render’, 0); Also, this make a padding top. With addition css code, we get the result we want.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!