Gutenberg is a WordPress platform, block-based editor. Gutenberg published in November 2018, was introduced it. Since then, many website owners have abandoned the classic editor in favor of Gutenberg.
Why do you need to disable Gutenberg?
If you are not ready for the new WordPress 5 Gutenberg Editor, why not stick with the classic editor? If this seems familiar, then reading this page may assist you in Disabling WordPress Gutenberg Editor.
Follow these tips to disable the Gutenberg editor
1) : Disable Gutenberg Blocks in Code
You would have this after adding this code to your current theme’s functions.php file.
Assume you don’t need the Archives and Calendar blocks.
<?php
add_filter( 'allowed_block_types_all', 'cxc_blacklist_blocks_call_back' );
function cxc_blacklist_blocks_call_back( $allowed_blocks ) {
// get all the registered blocks
$blocks = WP_Block_Type_Registry::get_instance()->get_all_registered();
// then disable some of them
unset( $blocks[ 'core/archives' ] );
unset( $blocks[ 'core/calendar' ] );
// return the new list of allowed blocks
return array_keys( $blocks );
}
?>