How to Set WordPress Default Text Editor

Here’s another handy piece of code, I found over at http://stackoverflow.com/

This snippet allows you to set your favorite post editor as default. All you need to do is paste the following code in your functions.php file.

Sets the Visual Editor as default:

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

Sets the HTML Editor as default:

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

See Also: Automatically set the Featured Image based on the first image – WordPress

How to set the default post editor in WordPress

How to set the default post editor in WordPress

 

0 Comments

Leave a Comment.