wp_setup_widgets_block_editor()WP 5.8.0

Enables the widgets block editor. This is hooked into after_setup_theme that the block editor is enabled by default but can be disabled by themes.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

wp_setup_widgets_block_editor();

Changelog

Since 5.8.0 Introduced.

wp_setup_widgets_block_editor() code WP 6.4.3

function wp_setup_widgets_block_editor() {
	add_theme_support( 'widgets-block-editor' );
}