block_core_navigation_parse_blocks_from_menu_items


block_core_navigation_parse_blocks_from_menu_items ( $menu_items, $menu_items_by_parent_id )

Parameters:
  • (array) menu_items An array of menu items that represent an individual level of a menu.
  • (array) menu_items_by_parent_id An array keyed by the id of the parent menu where each element is an array of menu items that belong to that parent.
Returns:
  • (array) An array of parsed block data.
Defined at:

Description

Turns menu item data into a nested array of parsed blocks

Related Functions

block_core_navigation_mock_parsed_block, block_core_navigation_sort_menu_items_by_parent_id, block_core_navigation_from_block_get_post_ids, block_core_navigation_render_submenu_icon, block_core_navigation_build_css_font_sizes

Top Google Results

User discussions

wpseek mobile