Disable both post text editors

[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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer