Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/blocks.php | apply_filters | 1021 | /** * Filters the block being rendered in render_block(), before it's processed. * * @since 5.1.0 * @since 5.9.0 The `$parent_block` parameter was added. * * @param array $parsed_block The block being rendered. * @param array $source_block An un-modified copy of $parsed_block, as it appeared in the source content. * @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block. */ |
wp-includes/class-wp-block.php | apply_filters | 237 | /** * Generates the render output for the block. * * @since 5.5.0 * * @param array $options { * Optional options object. * * @type bool $dynamic Defaults to 'true'. Optionally set to false to avoid using the block's render_callback. * } * @return string Rendered block output. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $parsed_block | The block being rendered. |
array | $source_block | An un-modified copy of $parsed_block, as it appeared in the source content. |
WP_Block|null | $parent_block | If this is a nested block, a reference to the parent block. |