Walker_Category_Checklist::end_el()
Ends the element output, if needed.
Method of the class: Walker_Category_Checklist{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Walker_Category_Checklist = new Walker_Category_Checklist(); $Walker_Category_Checklist->end_el( $output, $data_object, $depth, $args );
- $output(string) (required) (passed by reference — &)
- Used to append additional content (passed by reference).
- $data_object(WP_Term) (required)
- The current term object.
- $depth(int)
- Depth of the term in reference to parents.
- $args(array)
- An array of arguments. See wp_terms_checklist().
Default: array()
Notes
- See: Walker::end_el()
Changelog
Since 2.5.1 | Introduced. |
Since 5.9.0 | Renamed $category to $data_object to match parent class for PHP 8 named parameter support. |
Walker_Category_Checklist::end_el() Walker Category Checklist::end el code WP 6.6.2
public function end_el( &$output, $data_object, $depth = 0, $args = array() ) { $output .= "</li>\n"; }