Automattic\WooCommerce\EmailEditor
AccessDeniedException{}└─ HttpAwareException, UnexpectedValueException
USE: When an action is forbidden for given actor (although generally valid). API: 403 Forbidden
Хуков нет.
Использование
$AccessDeniedException = new AccessDeniedException(); // use class methods
Методы
- public getHttpStatusCode()
Код AccessDeniedException{} AccessDeniedException{} WC 10.8.1
class AccessDeniedException extends UnexpectedValueException implements HttpAwareException {
public function getHttpStatusCode(): int {
return 403;
}
}