Automattic\WooCommerce\Internal\VariationGallery

Package::is_enabledpublic staticWC 1.0

Whether the merged variation gallery feature is enabled for the current request.

Reads the same option as the Features toggles, so the FeaturesController and the merged-package machinery share a single source of truth. Defaults to off for the 10.9 canary period.

Method of the class: Package{}

No Hooks.

Returns

true|false.

Usage

$result = Package::is_enabled();

Package::is_enabled() code WC 10.9.4

public static function is_enabled() {
	return 'yes' === get_option( self::ENABLE_OPTION_NAME, 'no' );
}