Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created February 19, 2014 22:50
Show Gist options
  • Save yanknudtskov/9103335 to your computer and use it in GitHub Desktop.
Save yanknudtskov/9103335 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