WC_Product::set_manage_stock()
Set if product manage stock.
Method of the class: WC_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_manage_stock( $manage_stock );
- $manage_stock(true|false) (required)
- Whether or not manage stock is enabled.
Changelog
Since 3.0.0 | Introduced. |
WC_Product::set_manage_stock() WC Product::set manage stock code WC 8.7.0
public function set_manage_stock( $manage_stock ) { $this->set_prop( 'manage_stock', wc_string_to_bool( $manage_stock ) ); }