Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::init()publicWC 1.0

Add onboarding actions.

Method of the class: OnboardingSetupWizard{}

No Hooks.

Return

null. Nothing (null).

Usage

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

OnboardingSetupWizard::init() code WC 9.4.2

public function init() {
	if ( ! is_admin() ) {
		return;
	}

	// Old settings injection.
	// Run after Automattic\WooCommerce\Internal\Admin\Loader.
	add_filter( 'woocommerce_components_settings', array( $this, 'component_settings' ), 20 );
	// New settings injection.
	add_filter( 'woocommerce_admin_shared_settings', array( $this, 'component_settings' ), 20 );
	add_filter( 'woocommerce_admin_preload_settings', array( $this, 'preload_settings' ) );
	add_filter( 'admin_body_class', array( $this, 'add_loading_classes' ) );
	add_action( 'admin_init', array( $this, 'do_admin_redirects' ) );
	add_action( 'current_screen', array( $this, 'redirect_to_profiler' ) );
	add_filter( 'woocommerce_show_admin_notice', array( $this, 'remove_old_install_notice' ), 10, 2 );
	add_filter( 'admin_viewport_meta', array( $this, 'set_viewport_meta_tag' ) );
}