WooCommerce Brands rollout

With WooCommerce 9.4, WooCommerce Brands is getting rolled out to a cohort (5%) of installs.

If you do not want to participate in this change set the option woocommerce_remote_variant_assignment to a higher value, e.g. 111

<?php
/**
 * Ensures that the Brands feature is released initially only to 5% of users.
 *
 * @return bool
 */
public static function is_enabled() {
	$assignment = get_option( 'woocommerce_remote_variant_assignment', false );

	if ( false === $assignment ) {
		return false;
	}
	return ( $assignment <= 6 ); // Considering 5% of the 0-120 range.
}

While this is a good feature, it can break your existing brands solution as it did in my case on an existing ecommerce setup.

Comments

Leave a Reply