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
檢視更多 >