-
-
Save jpmarchand/546df9e9aea0b01d790c to your computer and use it in GitHub Desktop.
Disable visual and HTML editor in WordPress. Source: http://codex.wordpress.org/Function_Reference/remove_post_type_support
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
<?php | |
//* Disable visual and HTML editor in WordPress | |
function customprefix_remove_editor_from_post_type() { | |
remove_post_type_support('post', 'editor'); | |
} | |
add_action('init', 'customprefix_remove_editor_from_post_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment