parent_dropdown


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

Parameters:
  • (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.
Returns:
  • (null|false) Boolean False if page has no children, otherwise print out html elements
Defined at:
Change Log:
  • 4: .

Description

Print 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_users

Top Google Results

User discussions

wpseek mobile