Home / admin / Set default editor ‘wp_default_editor’
  • How to Set default editor ‘wp_default_editor’

    no thumbnail sorry: Set default editor ‘wp_default_editor’

    Choose between these two options to place within your functions.php to set your default editor in the wordpress admin.

    ( click code to copy )

    wordpress snippet : PHP - Visual Editor as default

    <>
    add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
    
    ( click code to copy )

    wordpress snippet : PHP - HTML Editor as default

    <>
    add_filter( 'wp_default_editor', create_function('', 'return "html";') );
    

    ( WordPress codex functions, hooks, in this snippet. )

    add_filter, _e, wp,