function remove_toolbar_items($wp_adminbar) {
$wp_adminbar->remove_node('updates');
$wp_adminbar->remove_node('comments');
$wp_adminbar->remove_node('stats');
$wp_adminbar->remove_node('cs-explain');
}
try adding in functions.php below code not sure if the remove_node trick is still working if not you can find a lot of wordpress admin plugin for customization
Code:function remove_toolbar_items($wp_adminbar) { $wp_adminbar->remove_node('updates'); $wp_adminbar->remove_node('comments'); $wp_adminbar->remove_node('stats'); $wp_adminbar->remove_node('cs-explain'); }
You want to remove for temporary or you want to completely disable as other logged in users can't see it?
I believe this bar only admin can see.
Question: are you giving your user admin role?
if you have a lot users (mod, editor etc) and installing plugin will not any problem for you just install "admin menu editor pro" plugin and customize it.Ofcourse i don't give permission to my user to admin role. But the other roles with moderator, editor or more level than default user also can view it.
add_action('after_setup_theme', 'guguk_bar_remover');
function guguk_bar_remover() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}