Sep 01, 2023  

Some of you enjoy it, some of us prefer the classic old way.
There are plugins to make this such as Classic Editor (for posts and pages only) or Disable Gutenberg (for everything), but you can achieve the same thing with a simple code in your theme functions.php

// 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);

// disable for widgets
add_filter( 'use_widgets_block_editor', '__return_false', 10 );

Add all three lines if you wanna disable for all or just the one you’re interested into for individual blocking.