Set Default Editor In WP-Admin

Snippets, Tutorials | By | 24 January 2011 | Comments 1

WordPress’ built in WYSIWYG (What You See is What You Get) content editor is pretty good on the grand scheme of things, one of the stand out features is that you can switch between the “Visual Editor” or the “HTML Editor.”

The Visual Editor is generally the default option, which for a large number of users suits them down to the ground, but many users (including myself) prefer the HTML editor so have to manually switch to it each time.

So today I will show you how to change that and use the HTML editor as default, the following changes take place inside functions.php, so backup before your begin.

functions.php

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

This will set the HTML editor as the default, or if you wish the Visual editor to be the default you can do this:

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

This is a basic modification, but it can be a personal gripe that many wish to address even if it only saves pressing a button each time you use the editor.

Paul Maloney is a UK based web designer/developer and runs the design agency Tropica. He particularly enjoys using and working with WordPress and has a keen interest in typography. You can also follow Paul on Twitter.

Visit Paul Maloney's website

One Comment

Leave A Comment.