Skip to content

Instantly share code, notes, and snippets.

@justinshreve
Created December 17, 2019 12:20
Show Gist options
  • Save justinshreve/6e945dcb4714134156aba1b3c7f086cf to your computer and use it in GitHub Desktop.
Save justinshreve/6e945dcb4714134156aba1b3c7f086cf to your computer and use it in GitHub Desktop.
enable-new-wc-onboarding.php
<?php
/*
Plugin Name: Enable WooCommerce Onboarding Split Test
Description: Puts the site into the test group for WooCommerce Onboarding split testing.
Version: 1.0.0
Author: Automattic
License: GPL2
*/
function woocommerce_admin_set_test_group() {
return 'b';
}
add_filter( 'pre_option_woocommerce_setup_ab_wc_admin_onboarding', 'woocommerce_admin_set_test_group' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment