set_ignored_hooked_blocks_metadata
- %1$s is private and should not be used in themes or plugins directly.
set_ignored_hooked_blocks_metadata ( $parsed_anchor_block, $relative_position, $hooked_blocks, $context )
Access: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:Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Adds a list of hooked block types to an anchor block's ignored hooked block types.This function is meant for internal use only.