WordPress at a glance
function is not described

wp_dropdown_cats() WP 1.2.0

Deprecated in 3.0.0. It is no longer supported and can be removed in future releases. Use wp_dropdown_categories() instead.

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

  • See: wp_dropdown_categories()

No Hooks.

Return

true/false/null. False if no categories were found.

Usage

wp_dropdown_cats( $currentcat, $currentparent, $parent, $level, $categories );
$currentcat(int)
ID of the current category.
Default: 0
$currentparent(int)
Current parent category ID.
Default: 0
$parent(int)
Parent ID to retrieve categories for.
Default: 0
$level(int)
Number of levels deep to display.
Default: 0
$categories(array)
Categories to include in the control.
Default: 0

Code of wp dropdown cats: wp-admin/includes/deprecated.php WP 5.2.1

<?php
function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' );
	if (!$categories )
		$categories = get_categories( array('hide_empty' => 0) );

	if ( $categories ) {
		foreach ( $categories as $category ) {
			if ( $currentcat != $category->term_id && $parent == $category->parent) {
				$pad = str_repeat( '&#8211; ', $level );
				$category->name = esc_html( $category->name );
				echo "\n\t<option value='$category->term_id'";
				if ( $currentparent == $category->term_id )
					echo " selected='selected'";
				echo ">$pad$category->name</option>";
				wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
			}
		}
	} else {
		return false;
	}
}