parent_dropdown


parent_dropdown ( $default_page = 0, $parent_page = 0, $level = 0, $post = null )

Parameters:
  • (int) default_page Optional. The default page ID to be pre-selected. Default 0.
  • (int) parent_page Optional. The parent page ID. Default 0.
  • (int) level Optional. Page depth level. Default 0.
  • (int|WP_Post) post Post ID or WP_Post object.
Returns:
  • (void|false) Void on success, false if the page has no children.
Defined at:
Change Log:
  • 4: .

Description

Prints out option HTML elements for the page parents drop-down.

Related Functions

page_template_dropdown, wp_dropdown_cats, walk_page_dropdown_tree, wp_dropdown_pages, wp_dropdown_roles

Top Google Results

User discussions

wpseek mobile