dropdown_categories

函数


dropdown_categories ( $default_category = 0, $category_parent = 0, $popular_ids = array() )
参数
  • (int)
    $default_category
    Unused.
    Required:
  • (int)
    $category_parent
    Unused.
    Required:
  • (array)
    $popular_ids
    Unused.
    Required:
    Default: array()
相关
  • wp_category_checklist()
定义位置
  • wp-admin/includes/deprecated.php
    , line 84
引入
0.71
弃用
2.6.0

Legacy function used to generate the categories checklist control.

function dropdown_categories( $default_category = 0, $category_parent = 0, $popular_ids = array() ) {
	_deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' );
	global $post_ID;
	wp_category_checklist( $post_ID );
}