W3cubDocs

/WordPress

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

$block_content = apply_filters( 'render_block', $block_content, $this->parsed_block, $this );

Changelog

Version Description
5.9.0 The $instance parameter was added.
5.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/render_block