block_core_navigation_set_ignored_hooked_blocks_metadata


block_core_navigation_set_ignored_hooked_blocks_metadata ( $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:
  • (string) Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
Defined at:

Description

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, insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata, block_core_navigation_insert_hooked_blocks_into_rest_response

Top Google Results

User discussions

wpseek mobile