Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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_filter('admin_head','remove_admin_bar_style_backend');  
}
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

 
discard

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.