I don’t want to appear WordPress toolbar or wp toobar on the front-end since it has nothing to do with the registered user. It will appear by default once the user has been registered.
Other method is using WordPress hook to place on header or footer to override the style sheet to make the portion disappear.
You can disable the toolbar on editing your user profile. Unchecked the Toolbar with description “Show Toolbar when viewing site”
If you have a large number of user and you want to disable the toolbar all at once then you can use the same method that I use.
Disable wp toolbar
Place it on the function.php of your wordpress theme.
From the wordpress admin dashboard go to; Appearance > Editor
Form the right side select the Theme Function or functions.php
Insert or paste the code and click Update File.
if (!function_exists("disableAdminBar")) {
function disableAdminBar(){
global $current_user; get_currentuserinfo();
$user_id = $current_user->ID;
$meta_key = "show_admin_bar_front";
$meta_value = "false";
if ($current_user->show_admin_bar_front != $meta_value ) {
if ( 1 != get_current_user_id() ) { // disregard the update to user id 1
update_user_meta( $user_id, $meta_key, $meta_value );
}
}
}
}
add_action("init","disableAdminBar");