PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, May 16, 2022

[FIXED] How to disable widget block editor of WordPress?

 May 16, 2022     php, widget, wordpress, wordpress-gutenberg, wordpress-rest-api     No comments   

Issue

WP 5.8 comes with a new system to manage events named "Widgets Block Editor". How can I disable this new system and restore the classic widget editor of WordPress?


Solution

To disable the new WordPress widget editor system you can use one of following methods.

1. Install and Activate the Disable Widget Block Editor plugin.

2. Use use_widgets_block_editor filter to disable it. You can place following code in your theme functions.php file or your plugin.

add_filter( 'use_widgets_block_editor', '__return_false' );

3. Use following code in functions.php of your theme to declare that your theme doesn't support the new widget editor system.

remove_theme_support( 'widgets-block-editor' )


Answered By - Hossein
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing