📜  wordpress 停用小部件 gutenberg - PHP 代码示例

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

代码示例1
// Add to your functions.php theme file:

// 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' );