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.


Top ↑

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 ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.