On this page
apply_filters( 'render_block', string $block_content, array $block, WP_Block $instance )
Filters the content of a single block.
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', $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