WordPress at a glance
function is not described

wp_category_checklist() WP 2.5.1

Output an unordered list of checkbox input elements labeled with category names.

  • See: wp_terms_checklist()

No Hooks.


Nothing (null).


wp_category_checklist( $post_id, $descendants_and_self, $selected_cats, $popular_cats, $walker, $checked_ontop );
Post to generate a categories checklist for. $selected_cats must not be an array.
Default: 0
ID of the category to output along with its descendants.
Default: 0
List of categories to mark as checked.
Default: false
List of categories to receive the "popular-category" class.
Default: false
Walker object to use to build the output.
Default: Walker_Category_Checklist instance
Whether to move checked items out of the hierarchy and to the top of the list.
Default: true

Code of wp category checklist: wp-admin/includes/template.php VER 5.0.3

function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
	wp_terms_checklist( $post_id, array(
		'taxonomy' => 'category',
		'descendants_and_self' => $descendants_and_self,
		'selected_cats' => $selected_cats,
		'popular_cats' => $popular_cats,
		'walker' => $walker,
		'checked_ontop' => $checked_ontop
	) );