wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



hooked_block › Les Filtres WordPress

Depuis6.5.0
Dépréciéen/a
› apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context )
Paramètres: (5)
  • () parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
    Requis: Oui
  • () hooked_block_type The hooked block type name.
    Requis: Oui
  • () relative_position The relative position of the hooked block.
    Requis: Oui
  • () parsed_anchor_block The anchor block, in parsed block array format.
    Requis: Oui
  • () context The block template, template part, post object, or pattern that the anchor block belongs to.
    Requis: Oui
Défini(e) dans:
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 );