WP_HTML_Open_Elements::push │ public │ WP 6.4.0

Pushes a node onto the stack of open elements.

Метод класса: WP_HTML_Open_Elements{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->push( $stack_item ): void;
$stack_item(WP_HTML_Token) (обязательный)
Item to add onto stack.

Заметки

Смотрите: https://html.spec.whatwg.org/#stack-of-open-elements

Список изменений

С версии 6.4.0 Введена.

Код WP_HTML_Open_Elements::push() WP 7.1.3

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