WordPress开发者和主题制作者的搜索引擎



walk_category_dropdown_tree ›

Since2.1.0
已弃用n/a
walk_category_dropdown_tree ( 没有参数 )
用户:
  • Walker_CategoryDropdown
查看:
  • Walker_CategoryDropdown::walk()
返回:
  • (string)
定义在:
文档:

Retrieve HTML dropdown (select) content for category list.



源码

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 );
}