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.
Return
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.7.1
function wp_setup_widgets_block_editor() { add_theme_support( 'widgets-block-editor' ); }