_wp_parse_blocks_from_menu_items


_wp_parse_blocks_from_menu_items ( $menu_items, $menu_items_by_parent_id )

Access:
  • private
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

_wp_delete_post_menu_item, wp_save_nav_menu_items, wp_pre_kses_block_attributes, wp_update_nav_menu_item, wp_get_nav_menu_items

Top Google Results

User discussions

wpseek mobile