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



render_block › WordPress过滤钩子

Since5.9.0
已弃用n/a
apply_filters( 'render_block', $block_content, $this->parsed_block, $this )
参数: (3)
  • (string) $block_content The block content.
    Required: Yes
  • (array) $block The full block, including name and attributes.
    Required: Yes
  • (WP_Block) $instance The block instance.
    Required: Yes
定义在:
文档:

Filters the content of a single block.





源码

$block_content = apply_filters( 'render_block', $block_content, $this->parsed_block, $this );