wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



hooked_block_{$hooked_block_type} › WordPress Filter Hooks

Seit6.5.0
Veraltetn/v
apply_filters( "hooked_block_{$hooked_block_type}", $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context )
Parameter: (5)
  • (array|null) $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
    Erforderlich: Ja
  • (string) $hooked_block_type The hooked block type name.
    Erforderlich: Ja
  • (string) $relative_position The relative position of the hooked block.
    Erforderlich: Ja
  • (array) $parsed_anchor_block The anchor block, in parsed block array format.
    Erforderlich: Ja
  • (WP_Block_Template|WP_Post|array) $context The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the parsed block array for a given hooked block.

The dynamic portion of the hook name, $hooked_block_type, refers to the block type name of the specific hooked block.





Quellcode

$parsed_hooked_block = apply_filters( "hooked_block_{$hooked_block_type}", $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );