WP_HTML_Processor::insert_html_elementprivateWP 6.4.0

Inserts an HTML element on the stack of open elements.

Method of the class: WP_HTML_Processor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->insert_html_element( $token ): void;
$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.8.3

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