/disable-editor-wordpress.php Secret
Last active
January 29, 2017 02:17
Star
You must be signed in to star a gist
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