Please disable your ad blocker.

The only ads on this site are discreet (sidebar on desktop, below the content on mobile).
They do not interfere with reading and may even offer you benefits (discounts, free months…).

WordPress: disable Gutenberg without a plugin

Difficulty

If, like me, you don’t like the new WordPress editor, you may want to disable it very easily.

To do so, nothing could be simpler—and without bloating your site with a plugin.

Edit your functions.php file located here:

WordPress installation directory/
├── wp-content/
│   ├── themes/
│   │   ├── theme-name/
│   │   │   ├── functions.php

by adding the following line, then save the file:

add_filter('use_block_editor_for_post', '__return_false', 10);

You can of course—and it’s even recommended—do this via your own functions.php file created as a plugin. In that case, it will be located here:

WordPress installation directory/
├── wp-content/
│   ├── plugins/
│   │   ├── plugin-name/
│   │   │   ├── functions.php

I also recommend making this change directly from the WordPress admin interface.