In our previous articles, we shared a convenient way to remove the visual editor mode from the WordPress post panel. However, the downside of that trick is that it requires editing each user profile and setting a preference. In this article, we will share with you a way in which you can set HTML Editor as the default editor for all users on your WordPress site.
By default, Visual Editor is the default post editor for WordPress, so there is no need for you to add any codes. You are good to go from the start. But if you want to make the HTML editor as the default post editor in WordPress, then open your theme’s functions.php file and paste the following code:
|1||add_filter( ‘wp_default_editor’, create_function(”, ‘return “html”;’) );|
Now, you don’t have to trouble your users with the Visual Editor. If you want to customize more options for different user roles, then we recommend you should check out the WordPress Adminize Plugin.
If you want to know how to install a WordPress plugin then follow our tutorial here.
Hope you loved this article. We would like to suggest to further read the how-to guide on ‘WordPress error establishing a database connection‘.