WP_HTML_Open_Elements::current_node(): WP_HTML_Token|null

In this article

Returns the node at the end of the stack of open elements, if one exists. If the stack is empty, returns null.

Return

WP_HTML_Token|null Last node in the stack of open elements, if one exists, otherwise null.

Source

* Sets a push handler that will be called when an item is pushed onto the stack of
* open elements.
*
* The function will be called with the pushed item as its argument.
*

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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