Filters the parsed block array for a given hooked block.
Parameters
$parsed_hooked_block
array|null- The parsed block array for the given hooked block type, or null to suppress the block.
$hooked_block_type
string- The hooked block type name.
$relative_position
string- The relative position of the hooked block.
$parsed_anchor_block
array- The anchor block, in parsed block array format.
$context
WP_Block_Template|WP_Post|array- The block template, template part,
wp_navigation
post type, or pattern that the anchor block belongs to.
Source
$parsed_hooked_block = apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.