WC_Abstract_Order::get_last_save_error │ public │ WC 11.2.2

Get the exception that stopped the last save(). save() logs that exception and does not throw it.

Метод класса: WC_Abstract_Order{}

Хуков нет.

Возвращает

Exception|null. The exception, or null when the last save() wrote the order.

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

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_last_save_error(): ?Exception;

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

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

Код WC_Abstract_Order::get_last_save_error() WC 11.3.0

public function get_last_save_error(): ?Exception {
	return $this->last_save_error;
}