A WordPress-centric search engine for devs and theme authors



walk_page_dropdown_tree ›

Since2.1.0
Deprecatedn/a
walk_page_dropdown_tree ( $args )
Uses:
  • Walker_PageDropdown
See:
  • Walker_PageDropdown::walk()
Returns:
  • (string)
Defined at:
Codex:

Retrieve HTML dropdown (select) content for page list.



Source

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