parent_dropdown ( $default = 0, $parent = 0, $level = 0, $post = null )

  • (int) default Optional. The default page ID to be pre-selected. Default 0.
  • (int) parent 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.
  • (void|false) Void on success, false if the page has no children.
Defined at:
Change Log:
  • 4: .


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

Related Functions

page_template_dropdown, wp_dropdown_cats, wp_dropdown_users, walk_page_dropdown_tree, wp_dropdown_roles

Top Google Results

User discussions

wpseek mobile