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.
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_setup_widgets_block_editor();
Список изменений
С версии 5.8.0 | Введена. |
Код wp_setup_widgets_block_editor() wp setup widgets block editor WP 6.0
function wp_setup_widgets_block_editor() { add_theme_support( 'widgets-block-editor' ); }