Steps through the stack of open elements, starting with the top element (added first) and walking downwards to the one added last.
Description
This generator function is designed to be used inside a "foreach" loop. Example: $html = '<em><strong><a>We are here';
foreach ( $stack->walk_down() as $node ) {
echo "{$node->node_name} -> ";
}
> EM -> STRONG -> A -> To start with the most-recently added element and walk towards the top, see WP_HTML_Open_Elements::walk_up().
Used by · 1
WP_HTML_Open_Elements::at()Returns the name of the node at the nth position on the stack of open elements, or `null` if no such position exists.
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.