How to Disable Block-Based Widget Editor?

How to disable Block-Based Widget Editor in WordPress?

WordPress 5.8 introduces a new block-based widget editor to the Widgets screen ( Appearance > Widgets ) and Customizer ( Appearance > Customize > Widgets ). This new editor allows users to add blocks (instead of widgets) to widget areas using the familiar block editor interface introduced in WordPress 5.0.

Genesis Framework by default disables block-based widget editor. If you don’t see that disabled then add below code to disable it.

add_filter( 'use_widgets_block_editor', '__return_false' );

To enable it back forcefully then use below code.

add_filter( 'use_widgets_block_editor', '__return_true' );

Copyright © 2022 Crunchify, LLC.  •  Pro Services  •  Contact  •  Hosted at DiscourseHosting.