Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingJetpack::init()publicWC 1.0

Init.

Method of the class: OnboardingJetpack{}

No Hooks.

Return

null. Nothing.

Usage

$OnboardingJetpack = new OnboardingJetpack();
$OnboardingJetpack->init();

OnboardingJetpack::init() code WC 7.1.0

public function init() {
	add_action( 'woocommerce_admin_plugins_pre_activate', array( $this, 'activate_and_install_jetpack_ahead_of_wcpay' ) );
	add_action( 'woocommerce_admin_plugins_pre_install', array( $this, 'activate_and_install_jetpack_ahead_of_wcpay' ) );

	// Always hook into Jetpack connection even if outside of admin.
	add_action( 'jetpack_site_registered', array( $this, 'set_woocommerce_setup_jetpack_opted_in' ) );
}