The page_attributes_meta_box() WordPress function displays a dropdown menu containing a list of available parent pages. This allows the user to set a hierarchical relationship between the current page and the other pages in the list. This function is called within the edit page or edit post administration screens to give authors the ability to set up a Page Parent and order for the current page.
How to use the function
page_attributes_meta_box( WP_Post $post )
Parameters
-
$post
WP_Post -
Current post object.