Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSync::init()publicWC 1.0

Init.

Method of the class: OnboardingSync{}

No Hooks.

Return

null. Nothing (null).

Usage

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

OnboardingSync::init() code WC 8.7.0

public function init() {
	add_action( 'update_option_' . OnboardingProfile::DATA_OPTION, array( $this, 'send_profile_data_on_update' ), 10, 2 );
	add_action( 'woocommerce_helper_connected', array( $this, 'send_profile_data_on_connect' ) );

	if ( ! is_admin() ) {
		return;
	}

	add_action( 'current_screen', array( $this, 'redirect_wccom_install' ) );
}