WP_HTML_Unsupported_Exception::__construct │ public │ WP 6.7.0

Constructor function.

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

Хуков нет.

Возвращает

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

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

$WP_HTML_Unsupported_Exception = new WP_HTML_Unsupported_Exception();
$WP_HTML_Unsupported_Exception->__construct( $message, $token_name, $token_at, $token, $stack_of_open_elements, $active_formatting_elements );
$message(строка) (обязательный)
Brief message explaining what is unsupported, the reason this exception was raised.
$token_name(строка) (обязательный)
Normalized name of matched token when this exception was raised.
$token_at(int) (обязательный)
Number of bytes into source HTML document where matched token starts.
$token(строка) (обязательный)
Full raw text of matched token when this exception was raised.
$stack_of_open_elements(string[]) (обязательный)
Stack of open elements when this exception was raised.
$active_formatting_elements(string[]) (обязательный)
List of active formatting elements when this exception was raised.

Список изменений

С версии 6.7.0 Введена.

Код WP_HTML_Unsupported_Exception::__construct() WP 7.1.5

public function __construct( string $message, string $token_name, int $token_at, string $token, array $stack_of_open_elements, array $active_formatting_elements ) {
	parent::__construct( $message );

	$this->token_name = $token_name;
	$this->token_at   = $token_at;
	$this->token      = $token;

	$this->stack_of_open_elements     = $stack_of_open_elements;
	$this->active_formatting_elements = $active_formatting_elements;
}