Skip to content

Instantly share code, notes, and snippets.

@Mativve
Created August 18, 2021 16:31
Show Gist options
  • Save Mativve/1c1262f41fa5afa42112ec6ddc501dc3 to your computer and use it in GitHub Desktop.
Save Mativve/1c1262f41fa5afa42112ec6ddc501dc3 to your computer and use it in GitHub Desktop.
This code disable the block editor
<?php
//
// ByeByeGutenberg
//
// 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' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment