EN / ZH
Change the WordPress Editor Default View to HTML/Text

By default, the WordPress backend editor opens in the “Visual” view when editing posts, pages, and so on. At this point, I’ve essentially moved my entire writing workflow to plain-text Markdown with no formatting.

Every time I head to the WordPress backend to publish an article, I have to click “Text” first before I can paste in my content. It’s just too tedious.

So, as per the usual routine, let’s tweak the WordPress default settings and switch the editor’s default view to “HTML/Text.”

Add the following to your current WordPress theme’s functions.php:

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

And that’s it — done.