block_core_navigation_mock_parsed_block


block_core_navigation_mock_parsed_block ( $inner_blocks, $post )

Parameters:
  • (array) inner_blocks Parsed inner blocks of a Navigation block.
  • (WP_Post) post `wp_navigation` post object corresponding to the block.
Returns:
  • (array) the normalized parsed blocks.
Defined at:

Description

Mock a parsed block for the Navigation block given its inner blocks and the `wp_navigation` post object.The `wp_navigation` post's `_wp_ignored_hooked_blocks` meta is queried to add the `metadata.ignoredHookedBlocks` attribute.

Related Functions

block_core_navigation_insert_hooked_blocks, block_core_navigation_remove_serialized_parent_block, block_core_navigation_get_fallback_blocks, block_core_navigation_parse_blocks_from_menu_items, block_core_navigation_link_render_submenu_icon

Top Google Results

User discussions

wpseek mobile