wpseek.com
A WordPress-centric search engine for devs and theme authors



render_block_{$this->name} › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this )
Parameters: (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
Defined at:
Codex:

Filters the content of a single block.

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





Source

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