WP_HTML_Processor::get_namespace()
Indicates the namespace of the current token, or "html" if there is none.
Метод класса: WP_HTML_Processor{}
Хуков нет.
Возвращает
Строку
. One of "html", "math", or "svg".
Использование
$WP_HTML_Processor = new WP_HTML_Processor(); $WP_HTML_Processor->get_namespace(): string;
Код WP_HTML_Processor::get_namespace() WP HTML Processor::get namespace WP 6.8.1
public function get_namespace(): string { if ( ! isset( $this->current_element ) ) { return parent::get_namespace(); } return $this->current_element->token->namespace; }