How to hide toolbar (admin bar)?
Well, I like toolbar (note, that we call it toolbar, since WordPress 3.3 as far as I remember, we called it admin bar before that) and I do not need to hide it, but I know many people wants to. So, here is very simple code to do that thing:
1 |
add_filter('show_admin_bar', '__return_false'); |
Please note, that this line will hide toolbar only on front-end! If you want to hide it on both frontend and in the admin panel (for god’s sake, why?) do that:
1 |
show_admin_bar( false ); |
As easy as is.