WordPress at a glance
filter is not described

pre_render_block filter-hook . WP 5.1.0

Allows render_block() to be short-circuited, by returning a non-null value.

Usage

add_filter( 'pre_render_block', 'filter_function_name_6984', 10, 2 );
function filter_function_name_6984( $pre_render, $parsed_block ){
	// filter...

	return $pre_render;
}
$pre_render(string/null)
The pre-rendered content.
Default: null
$parsed_block(array)
The block being rendered.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

render_block()
pre_render_block
wp-includes/blocks.php 672
$pre_render = apply_filters( 'pre_render_block', null, $parsed_block );

Where in WP core the hook is used WordPress

Usage not found.