wp_dropdown_cats

DeprecatedDeprecated

This function has been deprecated. Use wp_dropdown_categories() instead.

SummerySummery

Legacy function used for generating a categories drop-down control.

Syntax

wp_dropdown_cats( int $currentcat, int $currentparent, int $parent, int $level, array $categories )

ParametersParameters

$currentcat

(int) (Optional) ID of the current category. Default 0.

$currentparent

(int) (Optional) Current parent category ID. Default 0.

$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.

ReturnReturn

(bool|null) False if no categories were found.

SourceSource

File: wp-admin/includes/deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Use wp_dropdown_categories()
1.2.0 Introduced.

See alsoSee also

Scroll to Top