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)
  • () parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
    Erforderlich: Ja
  • () hooked_block_type The hooked block type name.
    Erforderlich: Ja
  • () relative_position The relative position of the hooked block.
    Erforderlich: Ja
  • () parsed_anchor_block The anchor block, in parsed block array format.
    Erforderlich: Ja
  • () context The block template, template part, post object, 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 );