wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



widget_block_dynamic_classname › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
apply_filters( 'widget_block_dynamic_classname', $classname, $block_name )
Parâmetros: (2)
  • (string) $classname The classname to be used in the block widget's container HTML, e.g. 'widget_block widget_text'.
    Required: Yes
  • (string) $block_name The name of the block contained by the block widget, e.g. 'core/paragraph'.
    Required: Yes
Definido em:
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.





Fonte

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