Used By
Used By | Description |
---|---|
wp-includes/class-wp-walker.php: Walker::display_element() | Traverse elements to create list from elements. |
Ends the list of after the elements are added.
The $args parameter holds additional values that may be used with the child class methods. This method finishes the list at the end of output of the elements.
(string) (Required) Used to append additional content (passed by reference).
(int) (Required) Depth of the item.
(array) (Optional) An array of additional arguments.
Default value: array()
This method is abstract and should be explicitly defined in the child class, as needed. Also note that $output is passed by reference, so any changes made to the variable within the following methods are automatically handled (no return, echo, or print needed).
This method “End Level” is run when the walker reaches the end of a “branch” in the tree structure. Generally, this method is used to add the closing tag of a container HTML element (such as </ol>, </ul>, or </div>) to $output.
File: wp-includes/class-wp-walker.php
public function end_lvl( &$output, $depth = 0, $args = array() ) {}
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/walker/end_lvl