wpseek.com
WordPress开发者和主题制作者的搜索引擎



hooked_block › WordPress过滤钩子

Since6.5.0
已弃用n/a
› apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context )
参数: (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
定义在:
文档:

Filters the parsed block array for a given hooked block.





源码

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