Steps through the stack of active formatting elements, starting with the bottom element (added last) and walking upwards to the one added first.
Description
This generator function is designed to be used inside a "foreach" loop. Example: $html = '<em><strong><a>We are here';
foreach ( $stack->walk_up() as $node ) {
echo "{$node->node_name} -> ";
}
> A -> STRONG -> EM -> To start with the first added element and walk towards the bottom, see WP_HTML_Active_Formatting_Elements::walk_down().
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-active-formatting-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.