How to disable block editor in WordPress

PHP |

Do you want to disable the new page block editor page of Gutenberg and bring back the old one? You can do that simply by adding this line into your theme’s functions.php file:

add_filter('use_block_editor_for_post_type', 'd4p_32752_completly_disable_block_editor');

function d4p_32752_completly_disable_block_editor($use_block_editor) {
      return false;
}