NB: Make sure you do a back up of your theme, files and database before attempting the tutorials

Easy
Web Hosting Canada

Last modified : Aug 11 2021

Estimated reading time : 1 minute, 11 seconds - 108 words

Since version 5.0, WordPress has implemented a new visual CMS tool called Gutenberg.

Given that a lot of WordPress users have been using custom CMS plugins, using Gutenberg can cause multiple problems and headaches for users who have been using WordPress with their custom tools for years. Also some users might find it more cumbersome and complicated to use; especially when used with a different method for quite some time.

The filters below will allow you to easily disable Gutenberg and keep working like you’ve been for the last few years.

Disable Content Manager - Gutenberg

////////////////////////Disable Gutenberg ///////////////////////
add_filter('use_block_editor_for_post', '__return_false', 10); 
// disable for post types 
add_filter('use_block_editor_for_post_type', '__return_false', 10);

Disable Widgets Manager - Gutenberg

////////////////////// Disable Widgets Manager - Gutenberg
if ( ! function_exists( 'viamulti_activate_classic_widgets' ) ) :
function viamulti_activate_classic_widgets() {
    remove_theme_support( 'widgets-block-editor' );
}
endif;
add_action( 'after_setup_theme', 'viamulti_activate_classic_widgets' );

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>