WC_Product::get_low_stock_amount( string $context = 'view' )
Get low stock amount.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are view and edit.
Default value: 'view'
Return Return
(int|string) Returns empty string if value not set
Source Source
File: includes/abstracts/abstract-wc-product.php
public function get_low_stock_amount( $context = 'view' ) { return $this->get_prop( 'low_stock_amount', $context ); }
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |