Automattic\WooCommerce\StoreApi\Exceptions
OutOfStockException{}└─ StockAvailabilityException
OutOfStockException class.
This exception is thrown when an item in a draft order is out of stock completely.
Хуков нет.
Использование
$OutOfStockException = new OutOfStockException(); // use class methods
Методы
Нет Методов у класса.Код OutOfStockException{} OutOfStockException{} WC 10.0.2
class OutOfStockException extends StockAvailabilityException {}