Disable Gutenberg (Block Editor)

By default, WordPress uses the Gutenberg Block Editor for creating and editing content. While it offers a modern, block-based experience, many developers and users prefer the simplicity and speed of the traditional editor.

If you want a distraction-free, classic writing experience or need compatibility with older workflows, this snippet allows you to completely disable Gutenberg. Once applied, WordPress will automatically load the classic editing interface without needing the Classic Editor plugin.

// disable gutenberg for case-studies post type
add_filter('use_block_editor_for_post_type', function($use, $post_type) {
    if ($post_type === 'case-studies') {
        return false;
    }
    return $use;
}, 10, 2);


// disable gutenberg for all post types 
add_filter('use_block_editor_for_post_type', '__return_false');
PHP

Usage:

Disable the Gutenberg (Block Editor) in WordPress using a simple code snippet. Once disabled, WordPress automatically switches back to the Classic Editor interface without requiring any plugin.

Benefits:

  • Simpler Editing Experience – Clean and distraction-free interface, ideal for fast content writing.

  • Better Compatibility – Works seamlessly with older themes and plugins that may not support Gutenberg.

  • Improved Workflow Speed – Faster editing for developers and users familiar with the classic interface.

Frequently Asked Questions

No. You can disable it using a simple code snippet in your theme’s functions.php. No plugin is required.
WordPress will automatically switch to the Classic Editor interface (built-in fallback).
Yes. You can target specific post types (like pages or posts) using a conditional filter instead of disabling it globally.

Related Links

Related Snippets

Display Gravity Forms Entries for the Logged-In User

Display Gravity Forms submissions for logged-in users on the frontend using a simple shortcode. Learn...

Hide WooCommerce Prices for Non-Logged-In Users

Hide WooCommerce product prices for visitors who aren’t logged in. It will encourage users to...
Picture of Kishan D
Kishan D
I’m a web developer who builds with WordPress, WooCommerce, and Shopify, and I enjoy exploring React and creating gaming & tech content.

SHARE POST

Leave a Reply