wpseek.com
A WordPress-centric search engine for devs and theme authors



widget_types_to_hide_from_legacy_widget_block › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
Parameters:
  • (array) $widgets An array of excluded widget-type IDs.
    Required: Yes
Defined at:
Codex:

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.





Source

$editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters(