wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_category_checklist › WordPress Function
Since2.5.1
已弃用n/a
› wp_category_checklist ( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true )
| 参数: (6) |
|
| 查看: | |
| 定义在: |
|
| 文档: |
Outputs an unordered list of checkbox input elements labeled with category names.
Related Functions: wp_link_category_checklist, wp_terms_checklist, category_exists, wp_popular_terms_checklist, get_the_category_list
源码
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,
)
);
}