wc_is_stock_amount_integer() │ WC 10.1.0

Check if the stock amount is an integer.

Хуков нет.

Возвращает

bool.

Использование

wc_is_stock_amount_integer();

Список изменений

С версии 10.1.0 Введена.

Код wc_is_stock_amount_integer() WC 11.3.0

function wc_is_stock_amount_integer() {
	return wc_stock_amount( 1 ) === 1;
}