Last updated on September 13, 2023

Disable Widget Blocks (enable Classic Widgets)

Don’t know where to add this snippet? Read our guide: How to add code snippets.

Use Classic Widgets instead of Block Widgets .

Starting from WordPress 5.8, the block editor includes a new Widget Blocks feature that replaces the traditional (“classic”) widgets screen with a block-based interface. If you prefer to use the classic widgets interface, you can disable the Widget Blocks feature using the following code snippet:

add_filter( 'use_widgets_block_editor', '__return_false' );

Note that this method is only a temporary workaround and may not be supported in future versions of WordPress. It is recommended to familiarise yourself with the new block-based interface and migrate your widgets to the new interface if possible.

Last updated on September 13, 2023. Originally posted on April 30, 2023.

Leave a Reply

Your email address will not be published. Required fields are marked *