
我们可通过复制下面代码,并将其添加到主题函数 functions.php 文件里面保存,也可以解决小工具Widgets打不开的情况。
//禁止 WordPress5.0版本之后的Gutenberg 块编辑器
add_filter('use_block_editor_for_post', '__return_false');
remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
//切换回经典小工具
add_filter( 'gutenberg_use_widgets_block_editor', '__return_fa...