WP_HTML_Open_Elements::pop │ public │ WP 6.4.0

Pops a node off of the stack of open elements.

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

Хуков нет.

Возвращает

bool. Whether a node was popped off of the stack.

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

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->pop(): bool;

Заметки

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

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

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

Код WP_HTML_Open_Elements::pop() WP 7.1.5

public function pop(): bool {
	$item = array_pop( $this->stack );
	if ( null === $item ) {
		return false;
	}

	$this->after_element_pop( $item );
	return true;
}