📜  在小部件部分 wordpress 上禁用块编辑器 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:35.481000             🧑  作者: Mango

代码示例1
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false', 100 );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );