How to disable Gutenberg without a plugin

Hi there WordPress warrior .

If you care about site speed and performance  you should always try using as less plugins as you can because they will make your website heavy like a double meal in McDonalds.

 

Login into your Cpanel
Go into the files
Public_html folder
wp_content
themes
locate your theme and click on it
locate the file functions.php
copy this code on the bottom of the page:
 
//Disable Gutenberg
add_filter(‘use_block_editor_for_post’, ‘__return_false’, 10);
add_filter(‘use_block_editor_for_post_type’, ‘__return_false’, 10);

בואו נדבר על העסק שלכם