How to disable Gutenberg?

Posted on Dec 26 2018 by in Blogs Blogs and Blogging Gutenberg WordPress 

What is Gutenberg  in terms of WordPress?

Johannes Gutenberg was a German blacksmith known for inventing the mechanical movable type printing press. His printing press has been widely considered the most important invention of the modern era because it profoundly impacted the transmission of knowledge. Invented around 1439, Gutenberg’s movable type printing press initiated nothing less than a revolution in print technology. His press allowed manuscripts to be mass-produced at relatively affordable costs. The 42-line ‘Gutenberg Bible‘, printed around 1455, was Gutenberg’s most well known printed item. It is considered by many to be the first ‘modern’ printed book.

Gutenberg influence over the WordPress.

On the day of 6th December, WordPress 5.0 emerged with the new editor called “Gutenberg” named after Johannes Gutenberg. It is a new block-based editing environment which shall have drastic impact on WordPress industry. Few of us welcomed and few criticized the block-base layout. There are also other people who get impacted but not been fully aware of the new “WordPress Block Editor”.

Why Gutenberg?

Gutenberg is often to be known as only editor but in fact it opens the new era competition in making and keeping the WordPress #1 in coming time. It is the first initiate of WordPress to give an opportunity to developed with more flexibility to edit and manage the page template with more access and tools which developers can use to customize or edit the extensive pieces of WordPress website as well Blog.

Finally is it ready of everyone?

Considering my personal opinion, “No Gutenberg still needs some time” to be the preferred editor while updating WordPress. As we all know, WordPress uses more than 55,000 plugins including native and third party.  Each should be compatible to work with WordPress framework but unfortunately it is not possible to give update for every one of them instantly hence there are many times Gutenberg editor is not function as we expect more to that its block-based layout is an another challenge for new bees and quick editors to work on.

Here we are providing you to give an hold on Gutenberg and use native editor for WordPress.

  1. You can use plugin called “Disable Gutenberg” which will disable the Gutenberg and give you the option to use  your alternate editor.
  2. Disable “Gutenberg” by code.
    // disable for posts
    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);
  3. To Disable complete on an Older version
    // disable for posts
    add_filter('gutenberg_can_edit_post', '__return_false', 10);
    // disable for post types
    add_filter('gutenberg_can_edit_post_type', '__return_false', 10);
  4. Conditional Technique
    // Disable Gutenberg
    if (version_compare($GLOBALS['wp_version'], '5.0-beta', '>')) {
    	// WP > 5 beta
    	add_filter('use_block_editor_for_post_type', '__return_false', 10);
    } else {
    	// WP < 5 beta
    	add_filter('gutenberg_can_edit_post_type', '__return_false', 10);
  5. Disable Gutenberg for Custom Post Types.
    function digwp_disable_gutenberg($is_enabled, $post_type) {
    	if ($post_type === 'book') return false; // change book to your post type
    	return $is_enabled;
    add_filter('use_block_editor_for_post_type', 'digwp_disable_gutenberg', 10, 2);