Skip to content

Instantly share code, notes, and snippets.

@alainlankers
Last active Jul 29, 2021
Embed
What would you like to do?
Disable Gutenberg block editor in widgets after update to WordPress 5.8
// 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. renamed from wp_use_widgets_block_editor
add_filter( 'use_widgets_block_editor', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment