wp_setup_widgets_block_editor

函数
wp_setup_widgets_block_editor ( No parameters )

wp_setup_widgets_block_editor: 这个函数在WordPress的区块编辑器(Gutenberg)中使用,用于设置区块编辑器中使用的小工具和小工具区域。

启用小工具块编辑器。这与’after_setup_theme’挂钩,因此区块编辑器默认是启用的,但可以被主题禁用。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_setup_widgets_block_editor() {
add_theme_support( 'widgets-block-editor' );
}
function wp_setup_widgets_block_editor() { add_theme_support( 'widgets-block-editor' ); }
function wp_setup_widgets_block_editor() {
	add_theme_support( 'widgets-block-editor' );
}

常见问题

FAQs
查看更多 >