WP_HTML_Processor::insert_html_element()privateWP 6.4.0

Inserts an HTML element on the stack of open elements.

Method of the class: WP_HTML_Processor{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->insert_html_element( $token );
$token(WP_HTML_Token) (required)
Name of bookmark pointing to element in original input HTML.

Notes

Changelog

Since 6.4.0 Introduced.

WP_HTML_Processor::insert_html_element() code WP 6.6.2

private function insert_html_element( $token ) {
	$this->state->stack_of_open_elements->push( $token );
}