Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_types_to_hide_from_legacy_widget_block

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
256       * Filters the list of widget-type IDs that should **not** be offered by the
257       * Legacy Widget block.
258       *
259       * Returning an empty array will make all widgets available.
260       *
261       * @since 5.8.0
262       *
263       * @param string[] $widgets An array of excluded widget-type IDs.
264       */
265      $editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters(
266           'widget_types_to_hide_from_legacy_widget_block',
267           array(
268                'pages',
269                'calendar',
270                'archives',
271                'media_audio',
272                'media_image',
273                'media_gallery',
274                'media_video',