block_core_navigation_parse_blocks_from_menu_items
- block_core_navigation_parse_blocks_from_menu_items is deprecated since version 6.3.0!
Alternative: WP_Navigation_Fallback::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: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: 6.3.0
Description
Turns menu item data into a nested array of parsed blocks