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: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Prints out option HTML elements for the page parents drop-down.