Automattic\WooCommerce\EmailEditor

AccessDeniedException::getHttpStatusCodepublicWC 1.0

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

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$AccessDeniedException = new AccessDeniedException();
$AccessDeniedException->getHttpStatusCode(): int;

Код AccessDeniedException::getHttpStatusCode() WC 10.7.0

public function getHttpStatusCode(): int {
  return 403;
}