Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating{}└─ DeprecatedClassFacade
Deprecated since 9.6.0. It is no longer supported and may be removed in future releases. Use wp_get_environment_type() instead.
Service class that used to handle feature flags. That functionality is removed now and it is only used to determine "environment".
No Hooks.
Usage
$FeatureGating = new FeatureGating(); // use class methods
Methods
Changelog
| Deprecated | Since 9.6.0 | , use wp_get_environment_type() instead. |
FeatureGating{} FeatureGating{} code WC 10.8.1
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' ) {
}
}