Code to Disable Gutenberg Block Editor in WordPress

/* Disables Gutenberg Block Editor */
add_filter('use_block_editor_for_post', '__return_false');

There are two ways to disable Gutenberg Block Editor. The best method is by installing Classic Editor Plugin, or through the provided code.

Even though Gutenberg provides numerous benefits, the main problem people face is that it is not yet properly optimized. Even though you use only its minimal features, it still loads a while bunch of CSS which in unused. It slows down our website.

The total weight of CSS is 12.4KB which is the most concerning factor to decide whether or not to use Gutenberg. Read More on how to optimize.

Warning: Even though you disable Gutenberg today, no matter some other day you will have to adapt to Gutenberg. The Block editor is the future of WordPress. Classic Editor support will be stopped in the future.