Question : disable block editor on widget section wordpress
Answered by : nutty-nightingale-90nspkorn9at
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false', 100 );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
Source : https://stackoverflow.com/questions/68419688/how-to-disable-widget-block-editor-of-wordpress | Last Update : Fri, 10 Sep 21