On this page
apply_filters( 'render_block_context', array $context, array $parsed_block, WP_Block|null $parent_block )
Filters the default context provided to a rendered block.
Parameters
$contextarray-
Default context.
$parsed_blockarray-
Block being rendered, filtered by
render_block_data. $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
$context = apply_filters( 'render_block_context', $context, $parsed_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_context