Automattic\WooCommerce\Blocks\Domain\Services

FeatureGating::is_development_environment()publicWC 1.0

Checks if we're executing the code in an development environment.

{} Это метод класса: FeatureGating{}

Хуков нет.

Возвращает

true|false.

Использование

$FeatureGating = new FeatureGating();
$FeatureGating->is_development_environment();

Код FeatureGating::is_development_environment() WC 6.7.0

public function is_development_environment() {
	return self::DEVELOPMENT_ENVIRONMENT === $this->environment;
}