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().
Source
'CAPTION',
'HTML',
'TABLE',
'TD',
'TH',
'MARQUEE',
'OBJECT',
Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.