April 28th, 2019
Gutenberg is WordPress’s attempt at a built in page builder. It’s okay for websites running on basic themes with no custom functionality but when it comes to a custom website or theme with bespoke features, things can go downhill and cause the pages using the functionality to become ill formatted and structured.
Gutenberg can also look a little daunting for new users, luckily it’s quite easy to disable with a few lines of PHP.
Simply add this block of code to your functions.php
file and you will be rolled back to the default editor:
// 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);