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
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