Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::init()publicWC 1.0

Add onboarding actions.

{} Это метод класса: OnboardingSetupWizard{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код OnboardingSetupWizard::init() WC 6.6.1

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 );
}