Created
September 9, 2018 18:26
-
-
Save dospuntocero/651be21d83efeeeda78687d72c59c7b8 to your computer and use it in GitHub Desktop.
remove plain editor from wordpress waiting for guttenberg support on pages
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
function hide_editor() { | |
remove_post_type_support('page', 'editor'); | |
} | |
add_action( 'admin_init', 'hide_editor' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment