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
- $output
-
(Required) Used to append additional content (passed by reference).
- $data_object
-
(Required) The current term object.
- $depth
-
(Required) Depth of the term in reference to parents. Default 0.
- $args
-
(Optional) An array of arguments. @see wp_terms_checklist()
Default value: array()
Source
File: wp-admin/includes/class-walker-category-checklist.php
public function end_el( &$output, $category, $depth = 0, $args = array() ) {
$output .= "</li>\n";
}
Changelog
Version | Description |
---|---|
5.9.0 | Renamed $category to $data_object to match parent class for PHP 8 named parameter support. |
2.5.1 | Introduced. |