Core Function
View Source on Trac ↗ block_core_page_list_render_nested_page_list()
block_core_page_list_render_nested_page_list(
mixed $open_submenus_on_click,
mixed $show_submenu_icons,
mixed $is_navigation_child,
mixed $nested_pages,
mixed $is_nested,
mixed $active_page_ancestor_ids = array(),
mixed $colors = array(),
mixed $depth = 0
) Outputs Page list markup from an array of pages with nested children.
Parameters 5 required
| Name / Type | Description |
|---|---|
| $open_submenus_on_click boolean | Whether to open submenus on click instead of hover. Required |
| $show_submenu_icons boolean | Whether to show submenu indicator icons. Required |
| $is_navigation_child boolean | If block is a child of Navigation block. Required |
| $nested_pages array | The array of nested pages. Required |
| $is_nested boolean | Whether the submenu is nested or not. Required |
| $active_page_ancestor_ids array | An array of ancestor ids for active page. |
| $colors array | Color information for overlay styles. |
| $depth integer | The nesting depth. |
Return Value
(string)
List markup.
Function Information
Since Version
5.8.0
Source File
wp-includes/blocks/page-list.php
Advertisement