WC_Product::set_low_stock_amount( int|string $amount )
Set low stock amount.
Description Description
Parameters Parameters
- $amount
-
(Required) Empty string if value not set.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_low_stock_amount( $amount ) { $this->set_prop( 'low_stock_amount', '' === $amount ? '' : absint( $amount ) ); }
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |