woocommerce_product_dropdown_categories

The WooCommerce woocommerce product dropdown categories function.

Description

woocommerce_product_dropdown_categories( (array) $args = array(), (int) $deprecated_hierarchical = 1, (int) $deprecated_show_uncategorized = 1, (string) $deprecated_orderby = '' ); 

Parameters (4)

0. $args — Optional. (array) => array()
The args.
1. $deprecated_hierarchical — Optional. (int) => 1
The deprecated hierarchical.
2. $deprecated_show_uncategorized — Optional. (int) => 1
The deprecated show uncategorized.
3. $deprecated_orderby — Optional. (string) => ''
The deprecated orderby.

Usage

  1. if ( !function_exists( 'woocommerce_product_dropdown_categories' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The args. 
  5. $args = array(); 
  6.  
  7. // The deprecated hierarchical. 
  8. $deprecated_hierarchical = 1; 
  9.  
  10. // The deprecated show uncategorized. 
  11. $deprecated_show_uncategorized = 1; 
  12.  
  13. // The deprecated orderby. 
  14. $deprecated_orderby = ''; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = woocommerce_product_dropdown_categories($args, $deprecated_hierarchical, $deprecated_show_uncategorized, $deprecated_orderby); 
  18.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_product_dropdown_categories( $args = array(), $deprecated_hierarchical = 1, $deprecated_show_uncategorized = 1, $deprecated_orderby = '' ) { 
  2. return wc_product_dropdown_categories( $args, $deprecated_hierarchical, $deprecated_show_uncategorized, $deprecated_orderby );