I’m using wordpress multiste 3.3.1
I’m not gonna update it in the future. So I disabled all upgrade functions.
I want to remove the wordpress admin bar from both frontend as well as dashboard.
I can remove it from frontend using this code.
add_action( 'init', 'disable_admin_bar', 1 );
function disable_admin_bar() {
add_filter( 'show_admin_bar', '__return_false' );
}
But i couldn’t find any solution to remove it from dashboard.
I don’t want to use css solution to hide admin bar
and I’m ready to edit the core files to remove it
Can anyone help me to remove it completely?. Thanks
Source: http://wp.tutsplus.com/tutorials/how-to-disable-the-admin-bar-in-wordpress-3-3/
OR, for both front and back end…
THat looks like it should do it…. May I go on record as saying that planning to never update WordPress is a terrible idea. If nothing else, for security reasons.
Some CSS is required in there, or else you end up with a big gap where the bar used to be. NOTE: I’ve not tested this, as I have no need. But that source is normally quite reliable.
Use this small plugin, also available on Gist: https://gist.github.com/1503172
Works fine and is also a part of the plugin free “Adminimize”.
Just remove the action:
Update for WordPress 5.*
..and WORKS FINE!!
There are two new lines for remove_admin_bar_style_backend() function and a new function to remove backend footer