Reports if a specific node is in the stack of open elements.
Parameters
$tokenWP_HTML_Token
Look for this node in the stack.
Return
bool
Whether the referenced node is in the stack of open elements.
Uses · 1
WP_HTML_Open_Elements::walk_up()Steps through the stack of open elements, starting with the bottom element (added last) and walking upwards to the one added first.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.7.7 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.