Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
wp_setup_widgets_block_editor() WordPress Function
The wp_setup_widgets_block_editor() function sets up the default widgets for the WordPress block editor. This function is called during the block editor initialization.
wp_setup_widgets_block_editor() #
Enables the widgets block editor. This is hooked into ‘after_setup_theme’ so that the block editor is enabled by default but can be disabled by themes.
Source
File: wp-includes/widgets.php
function wp_setup_widgets_block_editor() { add_theme_support( 'widgets-block-editor' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |