wpseek.com
WordPress开发者和主题制作者的搜索引擎



widget_block_dynamic_classname › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'widget_block_dynamic_classname', $classname, $block_name )
参数: (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
定义在:
文档:

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.





源码

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