Core Function
View Source on Trac ↗ get_page_children()
get_page_children( mixed $page_id, mixed $pages ) Identifies descendants of a given page ID in a list of page objects.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $page_id int | Page ID. Required |
| $pages WP_Post[] | List of page objects from which descendants should be identified. Required |
Return Value
(WP_Post[])
List of page children.
Function Information
Since Version
1.5.1
Source File
wp-includes/post.php
Advertisement