Walker_Category_Checklist::end_el() WordPress Method
The Walker_Category_Checklist::end_el() method is used to end the category checklist element. This is a standard WordPress method and is used by many themes and plugins.
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
(string)(Required)Used to append additional content (passed by reference).
- $data_object
(WP_Term)(Required)The current term object.
- $depth
(int)(Required)Depth of the term in reference to parents. Default 0.
- $args
(array)(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, $data_object, $depth = 0, $args = array() ) { $output .= "</li>\n"; }
Expand full source codeCollapse full source codeView on TracView on GitHub
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. |