Title: Walker_Category_Checklist::end_el
Published: April 25, 2014
Last modified: August 20, 2026

---

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

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#wp--skip-link--target)

Ends the element output, if needed.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#see-also)󠁿

 * [Walker::end_el()](https://developer.wordpress.org/reference/classes/Walker/end_el/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#parameters)󠁿

 `$output`stringrequired

Used to append additional content (passed by reference).

`$data_object`[WP_Term](https://developer.wordpress.org/reference/classes/wp_term/)
required

The current term object.

`$depth`intrequired

Depth of the term in reference to parents. Default 0.

`$args`arrayoptional

An array of arguments. See [wp_terms_checklist()](https://developer.wordpress.org/reference/functions/wp_terms_checklist/).

Default:`array()`

## 󠀁[Source](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-walker-category-checklist.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/class-walker-category-checklist.php#L137)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-walker-category-checklist.php#L137-L139)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/walker_category_checklist/end_el/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.9.0](https://developer.wordpress.org/reference/since/5.9.0/) | Renamed `$category` to `$data_object` to match parent class for PHP 8 named parameter support. | 
| [2.5.1](https://developer.wordpress.org/reference/since/2.5.1/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwalker_category_checklist%2Fend_el%2F)
before being able to contribute a note or feedback.