wpseek.com
A WordPress-centric search engine for devs and theme authors
walk_category_dropdown_tree › WordPress Function
Since2.1.0
Deprecatedn/a
› walk_category_dropdown_tree ( $args )
Parameters: |
|
Uses: |
|
See: |
|
Returns: |
|
Defined at: |
|
Codex: | |
Change Log: |
|
Retrieves HTML dropdown (select) content for category list.
Related Functions: walk_page_dropdown_tree, walk_category_tree, wp_dropdown_roles, wp_dropdown_categories, page_template_dropdown
Source
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 ); }