Automattic\WooCommerce\Internal\VariationGallery

Package::is_in_canary_cohortpublic staticWC 1.0

Whether the current store is in the canary cohort.

Method of the class: Package{}

No Hooks.

Returns

true|false.

Usage

$result = Package::is_in_canary_cohort(): bool;

Package::is_in_canary_cohort() code WC 11.0.1

public static function is_in_canary_cohort(): bool {
	$variant_assignment = (int) get_option( self::REMOTE_VARIANT_OPTION_NAME, 0 );
	return $variant_assignment > 0 && $variant_assignment <= self::CANARY_MAX_VARIANT;
}