How to disable Widget block editor in WordPress

PHP |

Do you want to disable the new widget block editor page of Gutenberg and bring back the old widget editor? You can do that simply by adding this line into your theme’s functions.php file:

function example_theme_support() {
    remove_theme_support( 'widgets-block-editor' );
}
add_action( 'after_setup_theme', 'example_theme_support' );