Posted By

alp on 04/03/11


Tagged

wordpress theming


Versions (?)

Set default editor | Wordpress


 / Published in: PHP
 

in functions.php

  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  

You need to login to post a comment.