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



render_block_{$this->name} › WordPress过滤钩子

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

Filters the content of a single block.

The dynamic portion of the hook name, `$name`, refers to the block name, e.g. "core/paragraph".




源码

$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this );