On this page
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_contentstring-
The block content.
$blockarray-
The full block, including name and attributes.
$instanceWP_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 );
Related
Used By
| Used By | Description |
|---|---|
| WP_Block::render() wp-includes/class-wp-block.php | Generates the render output for the block. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/render_block_this-name