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

WC_Settings_Shipping::save() public WC 1.0

Save settings.

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

Возвращает

Null. Ничего.

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

$WC_Settings_Shipping = new WC_Settings_Shipping();
$WC_Settings_Shipping->save();

Код WC Settings Shipping::save: woocommerce/includes/admin/settings/class-wc-settings-shipping.php WC 4.5.2

<?php
public function save() {
	global $current_section;

	switch ( $current_section ) {
		case 'options':
			WC_Admin_Settings::save_fields( $this->get_settings() );
			do_action( 'woocommerce_update_options_' . $this->id . '_options' );
			break;
		case 'classes':
			do_action( 'woocommerce_update_options_' . $this->id . '_classes' );
			break;
		case '':
			break;
		default:
			$wc_shipping        = WC_Shipping::instance();
			$is_shipping_method = false;

			foreach ( $wc_shipping->get_shipping_methods() as $method_id => $method ) {
				if ( in_array( $current_section, array( $method->id, sanitize_title( get_class( $method ) ) ), true ) ) {
					$is_shipping_method = true;
					do_action( 'woocommerce_update_options_' . $this->id . '_' . $method->id );
				}
			}
			if ( ! $is_shipping_method ) {
				WC_Admin_Settings::save_fields( $this->get_settings( $current_section ) );
			}
			break;
	}

	// Increments the transient version to invalidate cache.
	WC_Cache_Helper::get_transient_version( 'shipping', true );
}