How to disable Gutenberg editor from Multisite Admin panel?

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

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()

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745221474a4617269.html

相关推荐

  • How to disable Gutenberg editor from Multisite Admin panel?

    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

    13小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信