WordPress 新版本中编辑器不好用, 使用原有编辑器

将以下代码添加到当前主题的函数模板 functions.php 文件中即可。

add_filter('use_block_editor_for_post', '__return_false');
remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );

猜你喜欢

转载自www.cnblogs.com/niuli1987/p/10508239.html