wp_setup_widgets_block_editor()
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.
Returns
null. Nothing (null).
Usage
wp_setup_widgets_block_editor();
Changelog
| Since 5.8.0 | Introduced. |
wp_setup_widgets_block_editor() wp setup widgets block editor code WP 6.8.3
function wp_setup_widgets_block_editor() {
add_theme_support( 'widgets-block-editor' );
}