WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I remove the admin bar in both the front and backend for all users in WordPress 3.3?

share|improve this question
up vote 1 down vote accepted
/* Front end */
show_admin_bar( false );

/* back end */
function disableAdminBar(){
    remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );  
    function remove_admin_bar_style_backend() {  
        echo '<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>';
add_action('init', 'disableAdminBar');

Modified version of http://wp.tutsplus.com/tutorials/how-to-disable-the-admin-bar-in-wordpress-3-3/

share|improve this answer

This in functions.php: add_filter( 'show_admin_bar', '__return_false' );

Edit: For the front-end.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.