WP_HTML_Processor::next_token()publicWP 6.5.0

Finds the next token in the HTML document.

This doesn't currently have a way to represent non-tags and doesn't process semantic rules for text nodes. For access to the raw tokens consider using WP_HTML_Tag_Processor instead.

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

Хуков нет.

Возвращает

true|false. Whether a token was parsed.

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

$WP_HTML_Processor = new WP_HTML_Processor();
$WP_HTML_Processor->next_token(): bool;

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

С версии 6.5.0 Введена.
С версии 6.5.0 Added for internal support; do not use.
С версии 6.7.2 Refactored so subclasses may extend.

Код WP_HTML_Processor::next_token() WP 6.8.1

public function next_token(): bool {
	return $this->next_visitable_token();
}