WC_Product::set_manage_stock( bool $manage_stock )
Set if product manage stock.
Description Description
Parameters Parameters
- $manage_stock
-
(Required) Whether or not manage stock is enabled.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_manage_stock( $manage_stock ) { $this->set_prop( 'manage_stock', wc_string_to_bool( $manage_stock ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |