Warning: This function has been deprecated. Use wp_category_checklist() instead.

dropdown_categories() WordPress Function

The dropdown_categories() function in WordPress displays a list of categories as a drop-down menu. You can use this function in your WordPress themes and plugins.

dropdown_categories( int $default_category, int $category_parent, array $popular_ids = array() ) #

Legacy function used to generate the categories checklist control.


Description

Top ↑

See also


Top ↑

Parameters

$default_category

(int)(Required)Unused.

$category_parent

(int)(Required)Unused.

$popular_ids

(array)(Optional)Unused.

Default value: array()


Top ↑

Source

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
2.6.0Use wp_category_checklist()
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More