block_core_navigation_sort_menu_items_by_parent_id


block_core_navigation_sort_menu_items_by_parent_id ( $menu_items )

Parameters:
  • (array) menu_items Menu items to sort.
Returns:
  • (array) An array keyed by the id of the parent menu where each element is an array of menu items that belong to that parent.
Defined at:

Description

Sorts a standard array of menu items into a nested structure keyed by the id of the parent menu.

Related Functions

block_core_navigation_get_menu_items_at_location, block_core_navigation_submenu_build_css_font_sizes, block_core_navigation_get_post_ids, block_core_navigation_parse_blocks_from_menu_items, block_core_navigation_render_submenu_icon

Top Google Results

User discussions

wpseek mobile