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:

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.

Related Functions

get_children, get_term_children, _get_term_children, get_category_children, get_page_link

Top Google Results

User discussions

wpseek mobile