cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detect when WordPress is on staging environment

Is there a PHP function or constant that would allow my plugin or theme to detect when it is on a staging environment vs a production environment?  I'd like to run only certain things on production and other things on staging.

 

Thanks