How to make the WordPress Editor not accept HTML?
Remove post type support for the editor: add_action( ‘init’, function() { remove_post_type_support( ‘post’, ‘editor’); } ); Now add a new meta box containing only a textarea // print a new meta box function generic_cb($post) { $content = (!empty($post->post_content)) ? $post->post_content : ”; echo ‘<textarea name=”content”>’.$content.'</textarea>’; } function add_before_editor($post) { global $post; add_meta_box( ‘generic_box’, // id, … Read more