

This WordPress snippet efficiently disables Gutenberg, allowing you to use the Classic Editor without installing additional plugins.
<?php
// Disable Gutenberg for posts
add_filter('use_block_editor_for_post', '__return_false', 10);
// Disable Gutenberg for pages and other post types
add_filter('use_block_editor_for_post_type', '__return_false', 10);
Follow these simple steps to disable Gutenberg and use Classic Editor:
That’s it! Gutenberg is now disabled, and Classic Editor is enabled on your WordPress site.
WordPress offers two different editing experiences: the modern Gutenberg block editor and the traditional Classic Editor. Gutenberg provides a visual, block-based interface with drag-and-drop functionality. Each piece of content exists as an individual block that can be rearranged freely.
The Classic Editor, on the other hand, offers a simple, text-based interface that’s immediately familiar to longtime WordPress users. It’s lightweight and requires no learning curve.
There are several good reasons you might prefer to disable Gutenberg and stick with Classic Editor:
Using a code snippet to disable Gutenberg offers several advantages over installing a plugin. It’s a lightweight approach that adds minimal overhead to your site, and you get the same result without the security risks and update maintenance that come with additional plugins.
Code snippets are also less likely to break with WordPress updates compared to dedicated plugins that might not be maintained as actively. Plus, this approach prevents Gutenberg from loading unnecessary CSS and JavaScript files on your site’s front end, which can improve page load times.


Check it a URL parameter exists in Oxygen Builder.



