Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSync::init()publicWC 1.0

Init.

Метод класса: OnboardingSync{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of OnboardingSync::init() WC 7.1.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' ) );
}