How To Disable Widget Block Editor in WordPress 5.8+

Screenshot of a WordPress Widgets admin page showing various available widgets on the left and multiple widget areas, such as sidebar and footer columns, on the right for customization with an option to disable widget block editor.

In this tutorial, we are going to show you how to disable Widget Block Editor in WordPress 5.8.

WordPress 5.8 was released on July 20th, 2021 and it included some new features to the WordPress block editor. One of those features were in introduction to the new WordPress Widget Block Editor.

Now, why might you want to disable this feature? If you’re a WordPress developer like us, the new WordPress block editor is not our go-to choice. Personally we’re not a fan of the new UI that WordPress introduced a while back.

The code snippet below is a simple and easy way to disable the Widget Block Editor in WordPress 5.8 instead of having to download a plugin.

Disable Block Editor in WordPress

In order to disable widget block editor in WordPress by default, you need to add the following code into your themes functions.php file.

				
					// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );

// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
				
			

In Summary

Obviously, there are a lot of benefits to the new widget block editor feature, however, if you ever need to disable it now you have the knowledge and know-how to do so.

Table of Contents

Looking for more?

Here are some other articles that we think you will be interested in!

Screenshot of the Elementor page builder interface, with a drag-and-drop sidebar on the left and a web page preview on the right. A logo sits centerstage, set against a pink and purple gradient—perfect for adding PHP Code to Elementor projects.

How To Add PHP Code to Elementor

In this tutorial, we are going to show you how to easily add PHP Code to any Elementor page by creating a simple shortcode and adding it to your functions.php

Screenshot showing a webpage with food listings and a pop-up form titled Listing Settings, where a restaurant listing is being edited. Three food-related cards are visible, displayed in a layout created with WPBakery Visual Composer.

Create A WPBakery Visual Composer Add-On

Learn how easy it is to create a WPBakery Visual Composer Add-on element that you can use for almost any application! This can come in handy when you’re building a website for a client that isn’t so tech savy, but would like to be able to make some changes on their own in the future. Click the link to get started: