Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable visual and HTML editor in WordPress. Source: http://codex.wordpress.org/Function_Reference/remove_post_type_support
<?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
You can’t perform that action at this time.