Legacy function used to generate the categories checklist control.
$default_categoryintrequired
$category_parentintrequired
$popular_idsarrayoptional
Default:array()
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. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/dropdown_categories