WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Setup_Wizard::wc_setup_new_onboarding_save() public WC 1.0

Installs WooCommerce admin and redirects to the new onboarding experience.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Admin_Setup_Wizard = new WC_Admin_Setup_Wizard();
$WC_Admin_Setup_Wizard->wc_setup_new_onboarding_save();

Код WC_Admin_Setup_Wizard::wc_setup_new_onboarding_save() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-setup-wizard.php
<?php
public function wc_setup_new_onboarding_save() {
	check_admin_referer( 'wc-setup' );

	if ( $this->is_wc_admin_active() ) {
		$this->wc_setup_redirect_to_wc_admin_onboarding();
	}

	WC_Install::background_installer(
		'woocommerce-admin',
		array(
			'name'      => __( 'WooCommerce Admin', 'woocommerce' ),
			'repo-slug' => 'woocommerce-admin',
		)
	);

	// The plugin was not successfully installed, so continue with normal setup.
	if ( ! $this->is_wc_admin_active() ) {
		wp_safe_redirect( esc_url_raw( $this->get_next_step_link() ) );
		exit;
	}

	$this->wc_setup_redirect_to_wc_admin_onboarding();
}