Ends the element output, if needed.
Description
See also
Parameters
$output
stringrequired- Used to append additional content (passed by reference).
$data_object
objectrequired- Category data object. Not used.
$depth
intoptional- Depth of category. Not used.
$args
arrayoptional- An array of arguments. Only uses
'list'
for whether should append to output. See wp_list_categories() .More Arguments from wp_list_categories( … $args )
Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.Default:
array()
Source
public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
if ( 'list' !== $args['style'] ) {
return;
}
$output .= "</li>\n";
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.