WooCommerce::add_woocommerce_remote_variant()
Add woocommerce_remote_variant_assignment used to determine cohort or group assignment for Remote Spec Engines.
Method of the class: WooCommerce{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->add_woocommerce_remote_variant();
WooCommerce::add_woocommerce_remote_variant() WooCommerce::add woocommerce remote variant code WC 9.2.3
public function add_woocommerce_remote_variant() { $config_name = 'woocommerce_remote_variant_assignment'; if ( false === get_option( $config_name, false ) ) { update_option( $config_name, wp_rand( 1, 120 ) ); } }