phpwordpresswidgetwordpress-rest-apiwordpress-gutenberg

How to disable widget block editor of WordPress?


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