Automattic\WooCommerce\Internal\VariationGallery
Package::is_enabled
Whether the merged variation gallery feature is enabled for the current request.
Explicit yes/no on the option wins; unset falls back to the canary cohort.
Method of the class: Package{}
No Hooks.
Returns
true|false.
Usage
$result = Package::is_enabled();
Package::is_enabled() Package::is enabled code WC 11.0.1
public static function is_enabled() {
$option_value = get_option( self::ENABLE_OPTION_NAME, '' );
if ( 'yes' === $option_value ) {
return true;
}
if ( 'no' === $option_value ) {
return false;
}
return self::is_in_canary_cohort();
}