How to Set the Default Editor to Visual or HTML in WordPress

Did you know that you can set the default editor in the WordPress post editor screen? I found this handy little filter over at wp-snippets.com. Select which on you want to be the default and simply add this to your theme’s functions.php file:

For Visual set as default:

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

For HTML set as default:

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

Comments (2)

Participate