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_block array
The block being rendered.
$source_block array
An un-modified copy of $parsed_block, as it appeared in the source content.
$parent_block WP_Block|null
If this is a nested block, a reference to the parent block.

Top ↑

Source

File: wp-includes/blocks.php. View all references

$parsed_block = apply_filters( 'render_block_data', $parsed_block, $source_block, $parent_block );


Top ↑

Changelog

Changelog
Version Description
5.9.0 The $parent_block parameter was added.
5.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.