Filter hook 'widget_block_dynamic_classname'
in WP Core File wp-includes/widgets/class-wp-widget-block.php at line 167
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/widgets/class-wp-widget-block.php |
167 |
Parameters
Type |
Name |
Description |
string |
$classname |
The classname to be used in the block widget's container HTML, e.g. 'widget_block widget_text'. |
string |
$block_name |
The name of the block contained by the block widget, e.g. 'core/paragraph'. |
PHP Doc
/**
* 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.
*
* @since 5.8.0
*
* @param string $classname The classname to be used in the block widget's container HTML,
* e.g. 'widget_block widget_text'.
* @param string $block_name The name of the block contained by the block widget,
* e.g. 'core/paragraph'.
*/