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



widget_types_to_hide_from_legacy_widget_block › WordPress过滤钩子

Since5.8.0
已弃用n/a
参数:
  • (string[]) $widgets An array of excluded widget-type IDs.
    Required: Yes
定义在:
文档:

Filters the list of widget-type IDs that should **not** be offered by the Legacy Widget block.

Returning an empty array will make all widgets available.





源码

$editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters(