Filter hook 'hooked_block'
in WP Core File wp-includes/blocks.php at line 909
Description
Filters the parsed block array for a given hooked block.
Occurrences
Filename |
Line Number |
wp-includes/blocks.php |
909 |
wp-includes/blocks.php |
980 |
Parameters
Type |
Name |
Description |
array|null |
$parsed_hooked_block |
The parsed block array for the given hooked block type, or null to suppress the block. |
string |
$hooked_block_type |
The hooked block type name. |
string |
$relative_position |
The relative position of the hooked block. |
array |
$parsed_anchor_block |
The anchor block, in parsed block array format. |
WP_Block_Template|WP_Post|array |
$context |
The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to. |
PHP Doc
/**
* Filters the parsed block array for a given hooked block.
*
* @since 6.5.0
*
* @param array|null $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
* @param string $hooked_block_type The hooked block type name.
* @param string $relative_position The relative position of the hooked block.
* @param array $parsed_anchor_block The anchor block, in parsed block array format.
* @param WP_Block_Template|WP_Post|array $context The block template, template part, `wp_navigation` post type,
* or pattern that the anchor block belongs to.
*/