Automattic\WooCommerce\StoreApi\Exceptions
OutOfStockException{}
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 8.7.0
class OutOfStockException extends StockAvailabilityException {}