WP_HTML_Open_Elements::push()publicWP 6.4.0

Pushes a node onto the stack of open elements.

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->push( $stack_item );
$stack_item(WP_HTML_Token) (required)
Item to add onto stack.

Notes

Changelog

Since 6.4.0 Introduced.

WP_HTML_Open_Elements::push() code WP 6.6.2

public function push( $stack_item ) {
	$this->stack[] = $stack_item;
	$this->after_element_push( $stack_item );
}