WC_Settings_Products::save()publicWC 1.0

Save settings and trigger the 'woocommerce_update_options_'.id action.

Метод класса: WC_Settings_Products{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WC_Settings_Products::save() WC 8.7.0

public function save() {
	$this->save_settings_for_current_section();

	/*
	 * Product->Inventory has a setting `Out of stock visibility`.
	 * Because of this, we need to recount the terms to keep them in-sync.
	 */
	WC()->call_function( 'wc_recount_all_terms' );

	$this->do_update_options_action();
}