Tag Info

New answers tagged


No need to reinvent the wheel - put your editor support back and tweak the settings: function wpse_199918_wp_editor_settings( $settings, $editor_id ) { if ( $editor_id === 'content' && get_current_screen()->post_type === 'custom_post_type' ) { $settings['tinymce'] = false; $settings['quicktags'] = false; ...


wp_kses_post if you want to allow certain HTML in your textarea/wp editor (safest, as @Bordoni said). esc_textarea is what you might looking for.

Top 50 recent answers are included