Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating::is_production_environment() public WC 1.0
Checks if we're executing the code in a production environment.
{} Это метод класса: FeatureGating{}
Хуков нет.
Возвращает
true|false
. Ничего.
Использование
$FeatureGating = new FeatureGating(); $FeatureGating->is_production_environment();
Код FeatureGating::is_production_environment() FeatureGating::is production environment WC 5.2.2
public function is_production_environment() {
return self::PRODUCTION_ENVIRONMENT === $this->environment;
}