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

Top ↑

See also


Top ↑

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()


Top ↑

Source

File: wp-admin/includes/class-walker-category-checklist.php

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

Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.