Automattic\WooCommerce\Internal\StockNotifications
StockNotifications::is_enabled
Check whether the feature is enabled.
Must not run before init: feature_is_enabled() builds the translated feature definitions on first use. Every caller is hooked at init or later.
Method of the class: StockNotifications{}
No Hooks.
Returns
bool.
Usage
$result = StockNotifications::is_enabled(): bool;
StockNotifications::is_enabled() StockNotifications::is enabled code WC 11.2.1
private static function is_enabled(): bool {
return FeaturesUtil::feature_is_enabled( self::FEATURE_NAME ) || self::is_alpha_enabled();
}