disable wp admin bar code example
Example: disable admin bar wordpress
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );