apply_filters( 'widget_types_to_hide_from_legacy_widget_block', array $widgets )

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

Description

Returning an empty array will make all widgets available.

Parameters

$widgets

(array) An array of excluded widget-type IDs.

Source

File: wp-includes/block-editor.php

View on Trac

Changelog

Version Description
5.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_types_to_hide_from_legacy_widget_block