add_action('init', 'admin_bar' ); function admin_bar(){ if( is_user_logged_in() ){ add_filter( 'show_admin_bar', '__return_true' , 1000 ); } }