How to Set WordPress Default Editor

Posted by Lasantha Bandara File Under : wordpress 0 Comment

There are 2 editors in WordPress: "HTML Editor" and "Visual Editor". WordPress users can use both these editors. But we can set which editor should be displayed by default.

If you prefer to the HTML Editor, use this code (insert them into functions.php):

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

If you prefer to the Visual Editor, use this code (insert them into functions.php):

# set Visual Editor as the default editor
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.