Set default editor | Wordpress


/ Published in: PHP
Save to your folder(s)

in functions.php


Copy this code and paste it in your HTML
  1. # This sets the Visual Editor as default #
  2. add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
  3. # This sets the HTML Editor as default #
  4. add_filter( 'wp_default_editor', create_function('', 'return "html";') );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.