WordPress: Disable the Gutenberg Editor

i’m not here to judge — change is tough. but i will say that gutenberg makes the content creation experience so fun

that said, you might have a site where gutenberg isn’t necessary (a bunch of metadata options for each page/post type)

so instead of installing an older version of wordpress (v4.9.*), use this function to disable gutenberg and revert to the classic editor


 * disable gutenberg
function disable_gutenberg_editor()
    return false;
add_filter("use_block_editor_for_post_type", "disable_gutenberg_editor");

bitbucket snippet