dropdown_categories

Legacy function used to generate the categories checklist control.

Description

dropdown_categories( (int) $default = 0, (int) $parent = 0, (array) $popular_ids = array() ); 

Parameters (3)

0. $default — Optional. (int)
The default.
1. $parent — Optional. (int)
The parent.
2. $popular_ids — Optional. (array) => array()
The popular ids.

Usage

  1. if ( !function_exists( 'dropdown_categories' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The default. 
  5. $default = -1; 
  6.  
  7. // The parent. 
  8. $parent = -1; 
  9.  
  10. // The popular ids. 
  11. $popular_ids = array(); 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = dropdown_categories($default, $parent, $popular_ids); 
  15.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { 
  2. _deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' ); 
  3. global $post_ID; 
  4. wp_category_checklist( $post_ID );