wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



hooked_block_{$hooked_block_type} › Hooks de Filtros WordPress

Desde6.5.0
Obsoleton/a
› apply_filters( "hooked_block_{$hooked_block_type}", $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context )
Parâmetros: (5)
  • () parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
    Required: Yes
  • () hooked_block_type The hooked block type name.
    Required: Yes
  • () relative_position The relative position of the hooked block.
    Required: Yes
  • () parsed_anchor_block The anchor block, in parsed block array format.
    Required: Yes
  • () context The block template, template part, post object, or pattern that the anchor block belongs to.
    Required: Yes
Definido em:
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.




Fonte

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