Setup wizard: set a flag when Jetpack is opted into.

This is to be picked up by the WooCommerce Services extension.
This commit is contained in:
Jeff Stieler 2017-10-06 20:40:25 -06:00
parent e9a62731d4
commit 4c66520989
1 changed files with 3 additions and 0 deletions

View File

@ -1557,6 +1557,9 @@ class WC_Admin_Setup_Wizard {
// and we waited for the pending install to finish.
delete_option( 'woocommerce_setup_queued_jetpack_install' );
// Leave a note for WooCommerce Services that Jetpack has been opted into.
update_option( 'woocommerce_setup_jetpack_opted_in', true );
WC_Install::background_installer( 'jetpack', array(
'file' => 'jetpack/jetpack.php',
'name' => __( 'Jetpack', 'woocommerce' ),