Automattic\WooCommerce\EmailEditor

AccessDeniedException{}WC 1.0└─ HttpAwareException, UnexpectedValueException

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

No Hooks.

Usage

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

Methods

  1. public getHttpStatusCode()

AccessDeniedException{} code WC 10.6.2

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