1. Home
  2. Wordpress
  3. Is admin

Check if an admin panel or a dashboard is opened.

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