WP_HTML_Processor::insert_html_element( WP_HTML_Token $token )

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use https://html.spec.whatwg.org/#insert-a-foreign-element instead.

Inserts an HTML element on the stack of open elements.

Description

See also

Parameters

$tokenWP_HTML_Tokenrequired
Name of bookmark pointing to element in original input HTML.

Source

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

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.