Lego2012
12/13/2016 - 12:03 PM

Set the Default Text Editor

Set the Default Text Editor

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- 
Don’t like the default WYSIWYG editor? Change it the default to the HTML editor using functions.php 
-->

<?php
# This sets the Visual Editor as default #
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
# This sets the HTML Editor as default #
add_filter( 'wp_default_editor', create_function('', 'return "html";') );  
?>