Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable Gutenberg editor in WordPress 5.x
/**
*
* Disable Gutenberg Editor for all post types
*
*/
// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);
// disable for post types
add_filter('use_block_editor_for_post_type', '__return_false', 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.