[ad_1]
Hello,
How can I disable both the visual and classic editor?
There was a similar topic earlier, where the problem was solved by adding the following code:
add_action('init', 'my_remove_editor_from_post_type');
function my_remove_editor_from_post_type() {
remove_post_type_support( 'post', 'editor' );
remove_post_type_support( 'page', 'editor' );}
Unfortunately, it’s no longer helping with this issue.
I’ve been able to disable the visual editor by adding the following code to functions.php:
add_filter( 'user_can_richedit' , '__return_false', 50 );Please tell me how I can disable the classic editor too. I don’t want users to be able to add html code and images, so I want to keep only regular text forms.
