insert_hooked_blocks


insert_hooked_blocks ( $parsed_anchor_block, $relative_position, $hooked_blocks, $context )

Access:
  • private
Parameters:
  • (array) parsed_anchor_block The anchor block, in parsed block array format.
  • (string) relative_position The relative position of the hooked blocks. Can be one of 'before', 'after', 'first_child', or 'last_child'.
  • (array) hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
  • (WP_Block_Template|WP_Post|array) context The block template, template part, or pattern that the anchor block belongs to.
Returns:
  • (string)
Defined at:

Description

Returns the markup for blocks hooked to the given anchor block in a specific relative position.

Related Functions

get_hooked_blocks, insert_hooked_blocks_into_rest_response, block_core_navigation_insert_hooked_blocks, insert_blog, set_ignored_hooked_blocks_metadata

Top Google Results

User discussions

wpseek mobile