WP_HTML_Open_Elements::pop()
Pops a node off of the stack of open elements.
Method of the class: WP_HTML_Open_Elements{}
No Hooks.
Return
true|false
. Whether a node was popped off of the stack.
Usage
$WP_HTML_Open_Elements = new WP_HTML_Open_Elements(); $WP_HTML_Open_Elements->pop();
Notes
Changelog
Since 6.4.0 | Introduced. |
WP_HTML_Open_Elements::pop() WP HTML Open Elements::pop code WP 6.6.2
public function pop() { $item = array_pop( $this->stack ); if ( null === $item ) { return false; } if ( 'context-node' === $item->bookmark_name ) { $this->stack[] = $item; return false; } $this->after_element_pop( $item ); return true; }