Returns the block editor settings needed to use the Legacy Widget block which is not registered by default.

Return Return

(array) Settings to be used with get_block_editor_settings().

Top ↑

Source Source

File: wp-includes/block-editor.php

function get_legacy_widget_block_editor_settings() {
	$editor_settings = array();

	 * 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.
	 * @since 5.8.0
	 * @param array $widgets An array of excluded widget-type IDs.
	$editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters(

	return $editor_settings;

Top ↑

Changelog Changelog

Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.