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.
$classnamestring
$block_namestring
'core/paragraph'.return apply_filters( 'widget_block_dynamic_classname', $classname, $block_name );
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_block_dynamic_classname