Skip to content

Instantly share code, notes, and snippets.

@mustafakucuk
Created December 7, 2018 13:40
Show Gist options
  • Save mustafakucuk/d617cc9aa4b9897ab53633e0626b78bb to your computer and use it in GitHub Desktop.
Save mustafakucuk/d617cc9aa4b9897ab53633e0626b78bb to your computer and use it in GitHub Desktop.
WordPress - Disable Gutenberg without use plugin.
if (version_compare($GLOBALS['wp_version'], '5.0-beta', '>')) {
add_filter('use_block_editor_for_post_type', '__return_false', 100);
} else {
add_filter('gutenberg_can_edit_post_type', '__return_false');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment