How to Set HTML Editor as the Default Post Editor in WordPress

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:

add_filter( 'wp_default_editor', create_function('', 'return "html";') );

Now, you don’t have to heckle your users with the Visual Editor.


Leave a Reply