walk_page_dropdown_tree( mixed $args ): string
- Since
- 2.1.0, 5.3.0
- Source
wp-includes/post-template.php:1594
Retrieves HTML dropdown (select) content for page list.
Parameters
$argsmixed- Elements array, maximum hierarchical depth and optional additional arguments.
Return
string
Uses · 1
- Walker_PageDropdown::__construct()
Used by · 1
- wp_dropdown_pages()Retrieves or displays a list of pages as a dropdown (select 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 { /** * @var Walker $walker */ $walker = $args[2]['walker']; } return $walker->walk( ...$args );}History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.3.0
Formalized the existing
...$args parameter by adding it to the function signature.from the docblock2.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/post-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.