WC_Product::get_low_stock_amount()publicWC 3.5.0

Get low stock amount.

Method of the class: WC_Product{}

No Hooks.

Return

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() code WC 8.7.0

public function get_low_stock_amount( $context = 'view' ) {
	return $this->get_prop( 'low_stock_amount', $context );
}