wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



widget_block_dynamic_classname › WordPress Filter Hooks

Seit5.8.0
Veraltetn/v
apply_filters( 'widget_block_dynamic_classname', $classname, $block_name )
Parameter: (2)
  • (string) $classname The classname to be used in the block widget's container HTML, e.g. 'widget_block widget_text'.
    Erforderlich: Ja
  • (string) $block_name The name of the block contained by the block widget, e.g. 'core/paragraph'.
    Erforderlich: Ja
Definiert in:
Codex:

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.





Quellcode

return apply_filters( 'widget_block_dynamic_classname', $classname, $block_name );