Walker_Category_Checklist::end_lvl( string $output, int $depth, array $args = array() )

Ends the list of after the elements are added.


Top ↑

See also

Top ↑


$output string Required
Used to append additional content (passed by reference).
$depth int Required
Depth of category. Used for tab indentation.
$args array Optional
An array of arguments. @see wp_terms_checklist()
More Arguments from wp_terms_checklist( ... $args ) Array or string of arguments for generating a terms checklist.
  • descendants_and_selfint
    ID of the category to output along with its descendants.
    Default 0.
  • selected_catsint[]
    Array of category IDs to mark as checked. Default false.
  • popular_catsint[]
    Array of category IDs to receive the "popular-category" class.
    Default false.
  • walkerWalker
    Walker object to use to build the output. Default empty which results in a Walker_Category_Checklist instance being used.
  • taxonomystring
    Taxonomy to generate the checklist for. Default 'category'.
  • checked_ontopbool
    Whether to move checked items out of the hierarchy and to the top of the list. Default true.
  • echobool
    Whether to echo the generated markup. False to return the markup instead of echoing it. Default true.

Default: array()

Top ↑


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

public function end_lvl( &$output, $depth = 0, $args = array() ) {
	$indent  = str_repeat( "\t", $depth );
	$output .= "$indent</ul>\n";

Top ↑


Version Description
2.5.1 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.