How to disable the new WordPress editor (Gutenberg) with 1 line of code

How to disable the new WordPress editor (Gutenberg) with 1 line of code

Many people don’t like the newly added WordPress Editor (Gutenberg) in the recent versions of WordPress by default.
If you’re one of the people that likes the classic editor better,
you can get it back by adding only one line of code to the end of your functions.php file.
Simply add the following code right before the last PHP closing tag.

add_filter( 'use_block_editor_for_post', '__return_false' );

3 thoughts on “How to disable the new WordPress editor (Gutenberg) with 1 line of code”

  1. Hello outstanding website! Does running a blog such as this require a massive amount work?
    I have no expertise in programming but I had been hoping to start my
    own blog in the near future. Anyways, should you have any suggestions or tips for new blog owners please share.
    I understand this is off topic nevertheless I just wanted to ask.
    Thanks!

Leave a Comment