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



widget_types_to_hide_from_legacy_widget_block › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
Parâmetros:
  • (string[]) $widgets An array of excluded widget-type IDs.
    Required: Yes
Definido em:
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.





Hooks relacionados: post_types_to_delete_with_user

Fonte

$editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters(