Disable the block editor for widgets in WordPress 5.8

Disable the block editor for widgets in WordPress 5.8 on child sites.

Snippet Type

Execute on Child Sites

Snippet

// 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' );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Reference