WP_HTML_Processor::is_virtual()
Indicates if the currently-matched token is virtual, created by a stack operation while processing HTML, rather than a token found in the HTML text itself.
Метод класса: WP_HTML_Processor{}
Хуков нет.
Возвращает
true|false
. Whether the current token is virtual.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_virtual(): bool;
Список изменений
С версии 6.6.0 | Введена. |
Код WP_HTML_Processor::is_virtual() WP HTML Processor::is virtual WP 6.8.1
private function is_virtual(): bool { return ( isset( $this->current_element->provenance ) && 'virtual' === $this->current_element->provenance ); }