remove admin bar for wp-admin pages also code example
Example 1: disable admin bar wordpress
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
Example 2: remove admin bar wordpress front end
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );