Using HTML editor as the wordpress content editor

Posted on February 14th, 2011

Using HTML editor as the wordpress content editor
If you are style the content using some unsupported tag like p,br etc wordpress will automatically strip them while you switch between html and visual editor. So if you want user see always HTML editor while they select that post here come the solution.

If you prefer using the HTML editor, then what about making it your blog default? Just paste the line below into your theme functions.php file, and you’re done.

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

Tags: , , ,