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

WC_Admin_Setup_Wizard::wc_setup_store_setup_save() public WC 1.0

Save initial store settings.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код WC_Admin_Setup_Wizard::wc_setup_store_setup_save() WC 4.5.2

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

	$address        = isset( $_POST['store_address'] ) ? wc_clean( wp_unslash( $_POST['store_address'] ) ) : '';
	$address_2      = isset( $_POST['store_address_2'] ) ? wc_clean( wp_unslash( $_POST['store_address_2'] ) ) : '';
	$city           = isset( $_POST['store_city'] ) ? wc_clean( wp_unslash( $_POST['store_city'] ) ) : '';
	$country        = isset( $_POST['store_country'] ) ? wc_clean( wp_unslash( $_POST['store_country'] ) ) : '';
	$state          = isset( $_POST['store_state'] ) ? wc_clean( wp_unslash( $_POST['store_state'] ) ) : '*';
	$postcode       = isset( $_POST['store_postcode'] ) ? wc_clean( wp_unslash( $_POST['store_postcode'] ) ) : '';
	$currency_code  = isset( $_POST['currency_code'] ) ? wc_clean( wp_unslash( $_POST['currency_code'] ) ) : '';
	$product_type   = isset( $_POST['product_type'] ) ? wc_clean( wp_unslash( $_POST['product_type'] ) ) : '';
	$sell_in_person = isset( $_POST['sell_in_person'] ) && ( 'yes' === wc_clean( wp_unslash( $_POST['sell_in_person'] ) ) );
	$tracking       = isset( $_POST['wc_tracker_checkbox'] ) && ( 'yes' === wc_clean( wp_unslash( $_POST['wc_tracker_checkbox'] ) ) );

	update_option( 'woocommerce_store_address', $address );
	update_option( 'woocommerce_store_address_2', $address_2 );
	update_option( 'woocommerce_store_city', $city );
	update_option( 'woocommerce_default_country', $country . ':' . $state );
	update_option( 'woocommerce_store_postcode', $postcode );
	update_option( 'woocommerce_currency', $currency_code );
	update_option( 'woocommerce_product_type', $product_type );
	update_option( 'woocommerce_sell_in_person', $sell_in_person );

	$locale_info = include WC()->plugin_path() . '/i18n/locale-info.php';

	if ( isset( $locale_info[ $country ] ) ) {
		update_option( 'woocommerce_weight_unit', $locale_info[ $country ]['weight_unit'] );
		update_option( 'woocommerce_dimension_unit', $locale_info[ $country ]['dimension_unit'] );

		// Set currency formatting options based on chosen location and currency.
		if ( $locale_info[ $country ]['currency_code'] === $currency_code ) {
			update_option( 'woocommerce_currency_pos', $locale_info[ $country ]['currency_pos'] );
			update_option( 'woocommerce_price_decimal_sep', $locale_info[ $country ]['decimal_sep'] );
			update_option( 'woocommerce_price_num_decimals', $locale_info[ $country ]['num_decimals'] );
			update_option( 'woocommerce_price_thousand_sep', $locale_info[ $country ]['thousand_sep'] );
		}
	}

	if ( $tracking ) {
		update_option( 'woocommerce_allow_tracking', 'yes' );
		wp_schedule_single_event( time() + 10, 'woocommerce_tracker_send_event', array( true ) );
	} else {
		update_option( 'woocommerce_allow_tracking', 'no' );
	}

	WC_Install::create_pages();
	wp_safe_redirect( esc_url_raw( $this->get_next_step_link() ) );
	exit;
}