How to Set a Default editor in WordPress

Paste one of this lines in the functions.php file of your theme:

// Visual Editor as default
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );

// HTML Editor as default #
add_filter( 'wp_default_editor', create_function('', 'return "html";') );

Source | WP Snippets

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*