最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to disable Gutenberg editor from Multisite Admin panel?

programmeradmin1浏览0评论

I recently Updated WordPress to 5.2.2 and I want to disable Gutenberg editor from network. By this way, I do not need to go into each sites and disable one by one.

I have already installed Disable Gutenberg plugin but this plugin would not show any relevant option to disable through the network level.

I recently Updated WordPress to 5.2.2 and I want to disable Gutenberg editor from network. By this way, I do not need to go into each sites and disable one by one.

I have already installed Disable Gutenberg plugin but this plugin would not show any relevant option to disable through the network level.

Share Improve this question edited Aug 20, 2019 at 3:22 princeexpedition asked Aug 19, 2019 at 22:03 princeexpeditionprinceexpedition 237 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can programmatically disable Gutenberg network-wide by adding a must-use plugin containing this code:

<?php
add_filter( 'use_block_editor_for_post', '__return_false' );

References

  • Must-Use Plugins
  • use_block_editor_for_post filter
  • __return_false()
发布评论

评论列表(0)

  1. 暂无评论