walk_page_dropdown_tree

Retrieve HTML dropdown (select) content for page list.

Description

(string) walk_page_dropdown_tree(); 

Returns (string)


Usage

  1. if ( !function_exists( 'walk_page_dropdown_tree' ) ) { 
  2. require_once ABSPATH . WPINC . '/post-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = walk_page_dropdown_tree(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post-template.php  
  1. function walk_page_dropdown_tree() { 
  2. $args = func_get_args(); 
  3. if ( empty($args[2][walker]) ) // the user's options are the third parameter 
  4. $walker = new Walker_PageDropdown; 
  5. else 
  6. $walker = $args[2][walker]; 
  7.  
  8. return call_user_func_array(array($walker, 'walk'), $args);