Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating{}
Устарела с версии 9.6.0. Больше не поддерживается и может быть удалена. Используйте wp_get_environment_type().
Service class that used to handle feature flags. That functionality is removed now and it is only used to determine "environment".
Хуков нет.
Использование
$FeatureGating = new FeatureGating(); // use class methods
Методы
Список изменений
Устарела | С версии 9.6.0 | , use wp_get_environment_type() instead. |
Код FeatureGating{} FeatureGating{} WC 9.8.2
class FeatureGating extends DeprecatedClassFacade { /** * The version that this class was deprecated in. * * @var string */ protected static $deprecated_in_version = '9.6.0'; /** * Constructor * * @param string $environment Hardcoded environment value. Useful for tests. */ public function __construct( $environment = 'unset' ) { } }