Outputs the end of the current element in the tree.
Description
See also
Parameters
$output
stringrequired- Used to append additional content. Passed by reference.
$data_object
WP_Postrequired- Page data object. Not used.
$depth
intoptional- Depth of page. Default 0 (unused).
$args
arrayoptional- Array of arguments.
Default:
array()
Source
public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
$t = "\t";
$n = "\n";
} else {
$t = '';
$n = '';
}
$output .= "</li>{$n}";
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.