• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Bent Corner

Bent Corner

a smell of wine and cheap perfume

  • Home
  • About Me
  • Contact Me
Home > WordPress > How to disable the Gutenberg block editor in WordPress without a plugin

How to disable the Gutenberg block editor in WordPress without a plugin

21 March 2021

How to disable the Gutenberg block editor in WordPress without a plugin

I don’t like the WordPress block editor known as Gutenburg. I started working with WordPress in 2007. Because of that fact, I’m accustomed to using either the Visual or even the Text editor when working on a page or a post. I find using Gutenburg to be cumbersome when using it to write a post or content to a page.

I definitely don’t see any advantages in using the block editor to write content. Because of this fact, I began using a plugin that deactivates Gutenberg. It’s called Classic Editor.

It works brilliantly at making Gutenberg go away. That said, I recently deactivated Classic Editor and uninstalled it. I did that because I discovered I could turn Gutenberg off by adding a single line of code to my theme’s functions.php file. It’s very easy to do.

How to turn off Gutenberg for everyone

Copy and paste the following code at the bottom of your website’s child theme’s functions.php file:

add_filter('use_block_editor_for_post', '__return_false');

How to turn off Gutenberg for a specific user

If you have multiple users who log into WordPress and they don’t all dislike the block editor, you can turn it off for a specific user. Copy and paste the following code at the bottom of your theme’s functions.php file:

$current_user = wp_get_current_user();
if ($current_user->user_email == 'info@richard-rottman.com') {
    add_filter('use_block_editor_for_post', '__return_false');  
}

Change the email address between the single quote marks to that of the user who doesn’t want to use the block editor before saving the file.

How to turn off Gutenberg for two specific users

If you have more than one user who doesn’t want to use the block editor, use the following code:

if (( $current_user->user_email == 'info@richard-rottman.com') || ( $current_user->user_email == 'rlrottman@gmail.com')) {
    add_filter('use_block_editor_for_post', '__return_false');  
}

Again, change the email addresses inside the single quote marks to the email addresses of the users who don’t want to use the block editor.

In conclusion

Gutenberg always seemed like a feature in WordPress that nobody asked for. Unfortunately, it looks like it’s around for good.

WordPress

Primary Sidebar

Subscribe

Enter your email address to subscribe to this blog and receive notifications of new posts by email. Easy like Sunday morning.

About Me

My name is Richard Rottman. This is my personal website. It's where I write about the assorted stuff I think is interesting or events I want to comment on. Read More…

Latest Posts

Pokémon idiot tries to get two Target associates fired

Pokémon has a gambling problem

The A-10 Thunderbolt II is the worst aircraft in the Air Force

Do not act like this unprofessional eBay seller

Logan Paul threatens to sue Rattle Pokemon

Will eBay reseller discrimination be the civil rights issue of 2026?

Your eBay account is restricted!

If you want to sell Pokémon cards, you need to grind

Charlie Kirk’s thoughts about people who join the military

The Dragon Con Policy on AI Art Is so Serious, It’s Secret

Currently Reading

The Dungeon Anarchist's Cookbook (Dungeon Crawler Carl Book #3)
The Dungeon Anarchist’s Cookbook (Dungeon Crawler Carl Book #3)

Bent Corner © 2005–2026

Made in Maryland

Bent Corner - MADE IN MARYLAND