Disable wordpress editor - gutenberg on Post type post
- Add the following code to your theme's functions.php file to disable Gutenberg on the "post" post type:
add_filter('use_block_editor_for_post_type', 'disable_gutenberg_editor');
function disable_gutenberg_editor($use_block_editor, $post_type) {
if ($post_type === 'post') {
return false;
}
return $use_block_editor;
}
- Save the functions.php file.
This code snippet will instruct WordPress to disable the Gutenberg editor specifically for the "post" post type.