apply_filters( "render_block_{$this->name}", string $block_content , array $block , WP_Block $instance )
Filters the content of a single block.
Description
The dynamic portion of the hook name, $name
, refers to the block name, e.g. "core/paragraph".
Parameters
-
$block_content
string -
The block content.
-
$block
array -
The full block, including name and attributes.
-
$instance
WP_Block -
The block instance.
Source
File: wp-includes/class-wp-block.php
.
View all references
$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this );
Changelog
Version | Description |
---|---|
5.9.0 | The $instance parameter was added. |
5.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
$block
is array with keys:These keys are explained and referenced in WP_Block