Below is the code to disable visual and HTML editor in WordPress.
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'); |