Returns the markup for blocks hooked to the given anchor block in a specific relative position and then adds a list of hooked block types to an anchor block’s ignored hooked block types.
This function is meant for internal use only.
$parsed_anchor_blockarrayrequired
$relative_positionstringrequired
'before', 'after', 'first_child', or 'last_child'.$hooked_blocksarrayrequired
$contextWP_Block_Template|WP_Post|arrayrequired
function insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) {
$markup = insert_hooked_blocks( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );
$markup .= set_ignored_hooked_blocks_metadata( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );
return $markup;
}
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata