Returns the name of the node at the nth position on the stack of open elements, or null if no such position exists.
Description
Note that this uses a 1-based index, which represents the "nth item" on the stack, counting from the top, where the top-most element is the 1st, the second is the 2nd, etc...
Parameters
$nthint
Retrieve the nth item on the stack, with 1 being the top element, 2 being the second, etc...
Return
WP_HTML_Token|null
Name of the node on the stack at the given location, or null if the location isn't on the stack.
Uses · 1
WP_HTML_Open_Elements::walk_down()Steps through the stack of open elements, starting with the top element (added first) and walking downwards to the one added last.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/html-api/class-wp-html-open-elements.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.