Open RyanBayne opened 3 years ago
Put debug and error related functionality and configuration within a wp_get_environment_type() argument.
switch ( wp_get_environment_type() ) { case 'local': case 'development': do_nothing(); break;
case 'staging': do_staging_thing(); break; case 'production': default: do_production_thing(); break;
}
Put debug and error related functionality and configuration within a wp_get_environment_type() argument.
switch ( wp_get_environment_type() ) { case 'local': case 'development': do_nothing(); break;
}