1. Home
  2. Wordpress
  3. Is admin bar showing

Check if the admin bar is showing.

#wordpress#php#template
if( is_admin_bar_showing() ) {
    echo "Admin bar is active";
}
copy
Full Wordpress cheatsheet