WordPress at Your Fingertips
filter is not described

render_block filter-hook . WP 5.0.0

Filters the content of a single block.

Usage

add_filter( 'render_block', 'filter_function_name_1510', 10, 2 );
function filter_function_name_1510( $block_content, $block ){
	// filter...

	return $block_content;
}
$block_content(string)
The block content about to be appended.
$block(array)
The full block, including name and attributes.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

WP_Block::render()
render_block
wp-includes/class-wp-block.php 244
$block_content = apply_filters( 'render_block', $block_content, $this->parsed_block );

Where in WP core the hook is used WordPress

wp-includes/block-supports/duotone.php 432
add_filter( 'render_block', 'wp_render_duotone_support', 10, 2 );
wp-includes/block-supports/elements.php 71
add_filter( 'render_block', 'wp_render_elements_support', 10, 2 );
wp-includes/block-supports/layout.php 105
add_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );
wp-includes/block-supports/layout.php 142
add_filter( 'render_block', 'wp_restore_group_inner_container', 10, 2 );