block_core_navigation_set_ignored_hooked_blocks_metadata ( $inner_blocks, $post )

  • (array) inner_blocks Parsed inner blocks of a Navigation block.
  • (WP_Post) post `wp_navigation` post object corresponding to the block.
  • (string) Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
Defined at:


Insert ignoredHookedBlocks meta into the Navigation block and its inner blocks.Given a Navigation block's inner blocks and its corresponding `wp_navigation` post object, this function inserts ignoredHookedBlocks meta into it, and returns the serialized inner blocks in a mock Navigation block wrapper.

Related Functions

block_core_navigation_update_ignore_hooked_blocks_meta, block_core_navigation_insert_hooked_blocks, set_ignored_hooked_blocks_metadata, block_core_navigation_insert_hooked_blocks_into_rest_response, block_core_navigation_get_inner_blocks_from_unstable_location

Top Google Results

User discussions

wpseek mobile