Core Function
View Source on Trac ↗ block_core_page_list_nest_pages()
block_core_page_list_nest_pages( mixed $current_level, mixed $children ) Outputs nested array of pages
Parameters 2 required
| Name / Type | Description |
|---|---|
| $current_level array | The level being iterated through. Required |
| $children array | The children grouped by parent post ID. Required |
Return Value
(array)
The nested array of pages.
Function Information
Since Version
5.8.0
Source File
wp-includes/blocks/page-list.php
Advertisement