• 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
  • Log In/Log Out
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

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

About Rick Rottman

My name is Rick Rottman, and this is my personal website. I was born and raised in Southern California, but I've lived most of my adult life in Maryland.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • Facebook
  • Instagram
  • Pinterest
  • Threads
  • Twitter

Subscribe

Get an e-mail notification when I publish a new post. Easy like Sunday morning.

Credit card chargebacks and Pokémon cards

Credit Card Chargebacks and Pokémon Cards

Donald Trump

Did Donald Trump break his promise not to start a new war?

Baltimore Orioles fire manager Brandon Hyde

The Baltimore Orioles owner gets his own bobblehead night

Los Angeles Dodgers planning White House visit

Los Angeles Dodgers planning White House visit

Deluxe 1:10 scale 'Star Wars' Luke and Leia statue

Deluxe 1:10 Scale ‘Star Wars’ Luke and Leia Statue

Pokémon collectors are proud to threaten people with violence

Pokémon collectors are proud to threaten people with violence

Why scalpers love Pokémon cards - Rick Rottman

Why ‘scalpers’ love Pokémon collectors

The JuJu Watkins 'white jersey' Funko Pop figure

The JuJu Watkins ‘white jersey’ Funko Pop figure

What will happen to your collection when you die? - Bent Corner

What Will Happen to Your Collection when You Die?

Currently Reading

Harlan Ellison Greatest Hits

Bent Corner © 2005–2026