WordPress at Your Fingertips
function is not described

WC_Product::set_low_stock_amount() public WC 3.5.0

Set low stock amount.

{} It's a method of the class: WC_Product{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_low_stock_amount( $amount );
$amount(int|string) (required)
Empty string if value not set.

Changelog

Since 3.5.0 Introduced.

Code of WC_Product::set_low_stock_amount() WC 5.5.2

<?php
public function set_low_stock_amount( $amount ) {
	$this->set_prop( 'low_stock_amount', '' === $amount ? '' : absint( $amount ) );
}