The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Disable Gutenberg Block Editor

Shared by Amit Dholiya · May 28, 2026

46 views
1 upvote
Back to Snippets

If you prefer using the classic WordPress editor instead of the Gutenberg block editor, you can disable Gutenberg completely.

Steps

  1. Open your WordPress theme functions.php file.
  2. Add the code below at the end of the file.
  3. Save the file.
  4. Refresh the post editor page.

Done — WordPress will use the Classic Editor instead of Gutenberg.

⚠️ Some modern plugins and themes require Gutenberg features. Test your website after disabling it.

add_filter('use_block_editor_for_post', '__return_false');
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments

Proudly supported by