Home / admin / Disable the admin bar completely
  • How to Disable the admin bar completely

    disable-the-new-admin-bar

    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!

    ( click code to copy )

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    add_filter, __,
  • 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.