Core Function
View Source on Trac ↗ wp_dropdown_cats()
wp_dropdown_cats(
mixed $current_cat = 0,
mixed $current_parent = 0,
mixed $category_parent = 0,
mixed $level = 0,
mixed $categories = 0
) Legacy function used for generating a categories drop-down control.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $current_cat int | Optional. ID of the current category. Default 0. |
| $current_parent int | Optional. Current parent category ID. Default 0. |
| $category_parent int | Optional. Parent ID to retrieve categories for. Default 0. |
| $level int | Optional. Number of levels deep to display. Default 0. |
| $categories array | Optional. Categories to include in the control. Default 0. |
Return Value
((void)
| false) Void on success, false if no categories were found.
Function Information
Since Version
1.2.0
Source File
wp-admin/includes/deprecated.php
Advertisement