Ends the element output, if needed.
(string) (Required) Used to append additional content (passed by reference).
(object) (Required) Not used.
(int) (Optional) Depth of category. Not used.
(array) (Optional) An array of arguments. Only uses 'list' for whether should append to output. See wp_list_categories().
Default value: array()
File: wp-includes/class-walker-category.php
public function end_el( &$output, $page, $depth = 0, $args = array() ) { if ( 'list' !== $args['style'] ) { return; } $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_category/end_el