WordPress at Your Fingertips
filter is not described

widget_block_dynamic_classname filter-hook . WP 5.8.0

The classname used in the block widget's container HTML.

This can be set according to the name of the block contained by the block widget.

Usage

add_filter( 'widget_block_dynamic_classname', 'filter_function_name_6795', 10, 2 );
function filter_function_name_6795( $classname, $block_name ){
	// filter...

	return $classname;
}
$classname(string)
The classname to be used in the block widget's container HTML, e.g. 'widget_block widget_text'.
$block_name(string)
The name of the block contained by the block widget, e.g. 'core/paragraph'.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

WP_Widget_Block::get_dynamic_classname()
widget_block_dynamic_classname
wp-includes/widgets/class-wp-widget-block.php 167
return apply_filters( 'widget_block_dynamic_classname', $classname, $block_name );

Where in WP core the hook is used WordPress

Usage not found.