Automattic\WooCommerce\EmailEditor

NotFoundException{} │ WC 1.0└─ HttpAwareException, UnexpectedValueException

USE: When the main resource we're interested in doesn't exist. API: 404 Not Found

Хуков нет.

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

$NotFoundException = new NotFoundException();
// use class methods

Методы

  1. public getHttpStatusCode()

Код NotFoundException{} WC 11.2.2

class NotFoundException extends UnexpectedValueException implements HttpAwareException {
  public function getHttpStatusCode(): int {
    return 404;
  }
}