Daily Tip: How to Set the Default Editor to Visual or HTML in WordPress
October 16, 2010
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:
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
For HTML set as default:
add_filter( 'wp_default_editor', create_function('', 'return "html";') );



Comments
Got something to say?