WordPress at Your Fingertips
filter is not described

widget_block_content filter-hook . WP 5.8.0

Filters the content of the Block widget before output.

Usage

add_filter( 'widget_block_content', 'filter_function_name_1714', 10, 3 );
function filter_function_name_1714( $content, $instance, $widget ){
	// filter...

	return $content;
}
$content(string)
The widget content.
$instance(array)
Array of settings for the current widget.
$widget(WP_Widget_Block)
Current Block widget instance.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

WP_Widget_Block::widget()
widget_block_content
wp-includes/widgets/class-wp-widget-block.php 77-82
echo apply_filters(
	'widget_block_content',
	$instance['content'],
	$instance,
	$this
);

Where in WP core the hook is used WordPress

wp-includes/class-wp-embed.php 34
add_filter( 'widget_block_content', array( $this, 'run_shortcode' ), 8 );
wp-includes/class-wp-embed.php 42
add_filter( 'widget_block_content', array( $this, 'autoembed' ), 8 );
wp-includes/default-filters.php 217
add_filter( 'widget_block_content', 'do_blocks', 9 );
wp-includes/default-filters.php 218
add_filter( 'widget_block_content', 'wp_filter_content_tags' );
wp-includes/default-filters.php 219
add_filter( 'widget_block_content', 'do_shortcode', 11 );