walk_category_dropdown_tree() – Retrieves HTML dropdown (select) content for category list.

You appear to be a bot. Output may be restricted

Description

Retrieves HTML dropdown (select) content for category list.

Usage

$string = walk_category_dropdown_tree( $args );

Parameters

$args
( mixed ) optional

Returns

string

Source

File name: wordpress/wp-includes/category-template.php
Lines:

1 to 12 of 12
function walk_category_dropdown_tree( ...$args ) {
  // The user's options are the third parameter.
  if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
    $walker = new Walker_CategoryDropdown;
  } else {
    
/**
 * @var Walker $walker
 */
    $walker = $args[2]['walker'];
  }
  return $walker->walk( ...$args );
}
 

 View on GitHub View on Trac