Automattic\WooCommerce\Internal\Logging
RemoteLogger::is_dev_or_local_environment()
Check if the current environment is development or local.
Creates a helper method so we can easily mock this in tests.
Method of the class: RemoteLogger{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->is_dev_or_local_environment();
RemoteLogger::is_dev_or_local_environment() RemoteLogger::is dev or local environment code WC 9.3.3
protected function is_dev_or_local_environment() { return in_array( wp_get_environment_type(), array( 'development', 'local' ), true ); }