Created
December 7, 2018 13:40
-
-
Save mustafakucuk/d617cc9aa4b9897ab53633e0626b78bb to your computer and use it in GitHub Desktop.
WordPress - Disable Gutenberg without use plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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