A WordPress-centric search engine for devs and theme authors



walk_category_dropdown_tree ›

Since2.1.0
Deprecatedn/a
walk_category_dropdown_tree ( No parameters )
Uses:
  • Walker_CategoryDropdown
See:
  • Walker_CategoryDropdown::walk()
Returns:
  • (string)
Defined at:
Codex:

Retrieve HTML dropdown (select) content for category list.



Source

function walk_category_dropdown_tree() {
	$args = func_get_args();
	// the user's options are the third parameter
	if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
		$walker = new Walker_CategoryDropdown;
	} else {
		$walker = $args[2]['walker'];
	}
	return call_user_func_array( array( $walker, 'walk' ), $args );
}