函数原型
dropdown_categories( int $default_category, int $category_parent, array $popular_ids = array() )
函数描述
Legacy function used to generate the categories checklist control.
是否弃用
Warning: This function has been deprecated. Use wp_category_checklist() instead.
函数参数
-
$default_category
int
Required - Unused.
-
$category_parent
int
Required - Unused.
-
$popular_ids
array
Optional - Unused.
Default:
array()
函数返回值
无
函数位置
File: wp-admin/includes/deprecated.php.
函数源码
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 );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.6.0 | Use wp_category_checklist() |
| 0.71 | Introduced. |

