How to Set WordPress Default Editor

Posted by Lasantha Bandara on August 17th, 2017 File Under : wordpress0 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";') );

File Under : wordpress

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.