Outputs the end of the current element in the tree.
(string) (Required) Used to append additional content. Passed by reference.
(WP_Post) (Required) Page data object. Not used.
(int) (Optional) Depth of page. Default 0 (unused).
(array) (Optional) Array of arguments.
Default value: array()
File: wp-includes/class-walker-page.php
public function end_el( &$output, $page, $depth = 0, $args = array() ) { if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } $output .= "</li>{$n}"; }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/walker_page/end_el