Automattic\WooCommerce\EmailEditor

AccessDeniedException{}WC 1.0└─ HttpAwareException, UnexpectedValueException

USE: When an action is forbidden for given actor (although generally valid). API: 403 Forbidden

Хуков нет.

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

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

Методы

  1. public getHttpStatusCode()

Код AccessDeniedException{} WC 10.8.1

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