WordPress at Your Fingertips
function is not described

WooCommerce::add_woocommerce_inbox_variant() public WC 1.0

Add woocommerce_inbox_variant for the Remote Inbox Notification.

P2 post can be found at https://wp.me/paJDYF-1uJ.

{} It's a method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing.

Usage

$WooCommerce = new WooCommerce();
$WooCommerce->add_woocommerce_inbox_variant();

Code of WooCommerce::add_woocommerce_inbox_variant() WC 5.6.0

public function add_woocommerce_inbox_variant() {
	$config_name = 'woocommerce_inbox_variant_assignment';
	if ( false === get_option( $config_name, false ) ) {
		update_option( $config_name, wp_rand( 1, 12 ) );
	}
}