WooCommerce::add_woocommerce_inbox_variant()
Add woocommerce_inbox_variant for the Remote Inbox Notification.
P2 post can be found at https://wp.me/paJDYF-1uJ.
This will no longer be used. The more flexible add_woocommerce_remote_variant below will be used instead.
Method of the class: WooCommerce{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->add_woocommerce_inbox_variant();
WooCommerce::add_woocommerce_inbox_variant() WooCommerce::add woocommerce inbox variant code WC 9.2.3
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 ) ); } }