wpseek.com
A WordPress-centric search engine for devs and theme authors



hooked_block › WordPress Filter Hooks

Since6.5.0
Deprecatedn/a
apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context )
Parameters: (5)
  • (array|null) $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
    Required: Yes
  • (string) $hooked_block_type The hooked block type name.
    Required: Yes
  • (string) $relative_position The relative position of the hooked block.
    Required: Yes
  • (array) $parsed_anchor_block The anchor block, in parsed block array format.
    Required: Yes
  • (WP_Block_Template|WP_Post|array) $context The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to.
    Required: Yes
Defined at:
Codex:

Filters the parsed block array for a given hooked block.





Source

$parsed_hooked_block = apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );