-
-
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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