Walker_Category_Checklist::end_el( string $output, WP_Term $data_object, int $depth, array $args = array() )

Ends the element output, if needed.

Description

See also

Parameters

$outputstringrequired
Used to append additional content (passed by reference).
$data_objectWP_Termrequired
The current term object.
$depthintrequired
Depth of the term in reference to parents. Default 0.
$argsarrayoptional
An array of arguments. See wp_terms_checklist().

Default:array()

Source

public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {
	$output .= "</li>\n";
}

Changelog

VersionDescription
5.9.0Renamed $category to $data_object to match parent class for PHP 8 named parameter support.
2.5.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.