Skip to main content
Login Join
Snippet · PHP

Disable Gutenberg Block Editor

Shared by Amit Dholiya · May 28, 2026

12 views
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