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

WC_Admin_Setup_Wizard::wc_setup_recommended_save() public WC 1.0

Recommended step save.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код WC_Admin_Setup_Wizard::wc_setup_recommended_save() WC 4.5.2

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

	$setup_storefront       = isset( $_POST['setup_storefront_theme'] ) && 'yes' === $_POST['setup_storefront_theme'];
	$setup_automated_tax    = isset( $_POST['setup_automated_taxes'] ) && 'yes' === $_POST['setup_automated_taxes'];
	$setup_mailchimp        = isset( $_POST['setup_mailchimp'] ) && 'yes' === $_POST['setup_mailchimp'];
	$setup_facebook         = isset( $_POST['setup_facebook'] ) && 'yes' === $_POST['setup_facebook'];
	$setup_wc_admin         = isset( $_POST['setup_wc_admin'] ) && 'yes' === $_POST['setup_wc_admin'];

	update_option( 'woocommerce_calc_taxes', $setup_automated_tax ? 'yes' : 'no' );
	update_option( 'woocommerce_setup_automated_taxes', $setup_automated_tax );

	if ( $setup_storefront ) {
		$this->install_theme( 'storefront' );
	}

	if ( $setup_automated_tax ) {
		$this->install_woocommerce_services();
	}

	if ( $setup_mailchimp ) {
		// Prevent MailChimp from redirecting to its settings page during the OBW flow.
		add_option( 'mailchimp_woocommerce_plugin_do_activation_redirect', false );

		$this->install_plugin(
			'mailchimp-for-woocommerce',
			array(
				'name'      => __( 'MailChimp for WooCommerce', 'woocommerce' ),
				'repo-slug' => 'mailchimp-for-woocommerce',
				'file'      => 'mailchimp-woocommerce.php',
			)
		);
	}

	if ( $setup_facebook ) {
		$this->install_plugin(
			'facebook-for-woocommerce',
			array(
				'name'      => __( 'Facebook for WooCommerce', 'woocommerce' ),
				'repo-slug' => 'facebook-for-woocommerce',
			)
		);
	}

	if ( $setup_wc_admin ) {
		$this->install_plugin(
			'woocommerce-admin',
			array(
				'name'      => __( 'WooCommerce Admin', 'woocommerce' ),
				'repo-slug' => 'woocommerce-admin',
			)
		);
	}

	wp_redirect( esc_url_raw( $this->get_next_step_link() ) );
	exit;
}