On this page
apply_filters( 'render_block_data', array $parsed_block, array $source_block, WP_Block|null $parent_block )
Filters the block being rendered in render_block() , before it’s processed.
Parameters
$parsed_blockarray-
The block being rendered.
$source_blockarray-
An un-modified copy of $parsed_block, as it appeared in the source content.
$parent_blockWP_Block|null-
If this is a nested block, a reference to the parent block.
Source
File: wp-includes/blocks.php. View all references
$parsed_block = apply_filters( 'render_block_data', $parsed_block, $source_block, $parent_block );
Related
Used By
| Used By | Description |
|---|---|
| WP_Block::render() wp-includes/class-wp-block.php | Generates the render output for the block. |
| render_block() wp-includes/blocks.php | Renders a single block into a HTML string. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/render_block_data