Skip to content

Instantly share code, notes, and snippets.

@alainlankers
Last active July 29, 2021 04:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alainlankers/76af818881e811ea7eb985e3a39180f9 to your computer and use it in GitHub Desktop.
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