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

WC_Admin_Setup_Wizard::wc_setup_payment_save() public WC 1.0

Payment Step save.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код WC_Admin_Setup_Wizard::wc_setup_payment_save() WC 4.5.2

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

	if (
		(
			// Install WooCommerce Services with Stripe to enable deferred account creation.
			! empty( $_POST['wc-wizard-service-stripe-enabled'] ) && // WPCS: CSRF ok, input var ok.
			! empty( $_POST['stripe_create_account'] ) // WPCS: CSRF ok, input var ok.
		) || (
			// Install WooCommerce Services with PayPal EC to enable proxied payments.
			! empty( $_POST['wc-wizard-service-ppec_paypal-enabled'] ) && // WPCS: CSRF ok, input var ok.
			! empty( $_POST['ppec_paypal_reroute_requests'] ) // WPCS: CSRF ok, input var ok.
		)
	) {
		$this->install_woocommerce_services();
	}

	$gateways = array_merge( $this->get_wizard_in_cart_payment_gateways(), $this->get_wizard_manual_payment_gateways() );

	foreach ( $gateways as $gateway_id => $gateway ) {
		// If repo-slug is defined, download and install plugin from .org.
		if ( ! empty( $gateway['repo-slug'] ) && ! empty( $_POST[ 'wc-wizard-service-' . $gateway_id . '-enabled' ] ) ) { // WPCS: CSRF ok, input var ok.
			$this->install_plugin( $gateway_id, $gateway );
		}

		$settings = array( 'enabled' => ! empty( $_POST[ 'wc-wizard-service-' . $gateway_id . '-enabled' ] ) ? 'yes' : 'no' );  // WPCS: CSRF ok, input var ok.

		// @codingStandardsIgnoreStart
		if ( ! empty( $gateway['settings'] ) ) {
			foreach ( $gateway['settings'] as $setting_id => $setting ) {
				$settings[ $setting_id ] = 'yes' === $settings['enabled'] && isset( $_POST[ $gateway_id . '_' . $setting_id ] )
					? wc_clean( wp_unslash( $_POST[ $gateway_id . '_' . $setting_id ] ) )
					: false;
			}
		}
		// @codingStandardsIgnoreSEnd

		if ( 'ppec_paypal' === $gateway_id && empty( $settings['reroute_requests'] ) ) {
			unset( $settings['enabled'] );
		}

		$settings_key = 'woocommerce_' . $gateway_id . '_settings';
		$previously_saved_settings = array_filter( (array) get_option( $settings_key, array() ) );
		update_option( $settings_key, array_merge( $previously_saved_settings, $settings ) );
	}

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