WC_Settings_Products::save
Save settings and trigger the 'woocommerce_update_options_'.id action.
Method of the class: WC_Settings_Products{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Settings_Products = new WC_Settings_Products(); $WC_Settings_Products->save();
WC_Settings_Products::save() WC Settings Products::save code WC 10.6.2
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', false );
$this->do_update_options_action();
}