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



walk_page_dropdown_tree ›

Since2.1.0
已弃用n/a
walk_page_dropdown_tree ( $args )
用户:
  • Walker_PageDropdown
查看:
  • Walker_PageDropdown::walk()
返回:
  • (string)
定义在:
文档:
Change Log:
  • 5.3.0

Retrieve HTML dropdown (select) content for page list.



源码

function walk_page_dropdown_tree( ...$args ) {
	if ( empty( $args[2]['walker'] ) ) { // the user's options are the third parameter
		$walker = new Walker_PageDropdown;
	} else {
		$walker = $args[2]['walker'];
	}

	return $walker->walk( ...$args );
}