WordPress at Your Fingertips
function is not described

WC_Settings_Products::save() public WC 1.0

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

{} It's a method of the class: WC_Settings_Products{}

No Hooks.


null. Nothing.


$WC_Settings_Products = new WC_Settings_Products();

Code of WC_Settings_Products::save() WC 5.9.0

public function save() {

	 * 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' );