wp-admin/includes/template.php:40Outputs an unordered list of checkbox input elements labeled with category names.
$post_idintoptional0$descendants_and_selfintoptional0$selected_catsint[]|falseoptionalfalse$popular_catsint[]|falseoptionalfalse$walkerWalkeroptionalnull$checked_ontopbooloptionaltruefunction 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, ) );}Introduced in 2.5.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.