Ends the element output, if needed.
$outputstringrequired
$data_objectobjectrequired
$depthintoptional
$argsarrayoptional
'list' for whether should append to output. See wp_list_categories() . Default:array()
public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
if ( 'list' !== $args['style'] ) {
return;
}
$output .= "</li>\n";
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/walker_category/end_el