get_page_children
get_page_children ( $page_id, $pages )
Parameters:- (int) page_id Page ID.
- (WP_Post[]) pages List of page objects from which descendants should be identified.
Returns:- (WP_Post[]) List of page children.
Defined at: - Introduced in WordPress: 1.5.1
- Deprecated in WordPress: —
Description
Identifies descendants of a given page ID in a list of page objects.Descendants are identified from the `$pages` array passed to the function. No database queries are performed.