Disable Gutenberg in one shortcode.
We can install classic editor even without plugins
Classic editor is a text editor that we use in blogs and posts, in WordPress, we just install it, we need to show the default Gutenberg editor.
If we believe that the old text editor is the best, then we need to install the shortcode of the classic editor.
We can also install the classic editor without installing the plugin of a classic editor through just one shortcode.
We will provide you a shortcode which you have to place in function.php inside the present
For this, first of all, you have to see which editor is working in your WordPress right now, then you first go to the first post and add a new one, then you will know which editor is the Gutenberg editor, then we will use the classic editor code. Will use And if Classic Editor comes up, it means that the plugin for Classic Editor is installed.
If we deactivate and delete this plugin and then use it, we will use a shortcode that will remove one plugin from our site. And in short, our work will go on like this only.
Now to add a shortcode you have to follow some steps, see below
Step 1 – Appearance –> Theme File Editor
Step 2 – Go to function.php file
Step 3 – Copy this code and paste it into the function.php file.
add_filter('use_block_editor_for_post', '__return_false', 10);