今天教大家怎么不装插件直接禁用古滕堡编辑器(Gutenberg),恢复至经典编辑器,不妨看看下面流程。
将以下代码添加到当前主题的函数模板:functions.php 文件中即可完美解决。
![图片[1]-WordPress怎么禁用古滕堡编辑器(Gutenberg)-西城知道](https://028.sevenit.cn/wordpress/2024/01/微信截图_20240116212254-300x120.jpg)
//禁止 WordPress5.0 使用 Gutenberg编辑器
add_filter('use_block_editor_for_post', '__return_false');
remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END













![FastAdmin发布安全更新版本,建议你立即修复或更新到新版本[2026-09-02]-西城知道](https://028.sevenit.cn/wordpress/2026/09/另起一行广告传媒_2026-09-02_18-15-11.jpg)


![表情[daku]-西城知道](https://blog.ccswust.org/wp-content/themes/zibll/img/smilies/daku.gif)



暂无评论内容