Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save INDIAN2020/e7870974f08e45cda37a1b0bb777f5d8 to your computer and use it in GitHub Desktop.
Save INDIAN2020/e7870974f08e45cda37a1b0bb777f5d8 to your computer and use it in GitHub Desktop.
Set Default Editor Do you prefer to use the HTML editor rather than the Visual Editor when writing posts? Make either of these options your default by adding either of the following lines to your functions.php file:
# 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";') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment