WC_Product::get_low_stock_amount
Get low stock amount.
Method of the class: WC_Product{}
No Hooks.
Returns
Int|String. Returns empty string if value not set
Usage
$WC_Product = new WC_Product(); $WC_Product->get_low_stock_amount( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.5.0 | Introduced. |
WC_Product::get_low_stock_amount() WC Product::get low stock amount code WC 10.5.0
public function get_low_stock_amount( $context = 'view' ) {
return $this->get_prop( 'low_stock_amount', $context );
}