Support » Fixing WordPress » make html default editor

  • Resolved mira345

    (@mira345)


    Hi I don’t want users to use the visual as the default text editor, but the text/code box. Would this code do that?

    add_filter( ‘wp_default_editor’, create_function(”, ‘return “html”;’) );

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • That should make the HTML editor the selected editor by default, but it won’t hide the Visual editor tab or prevent users from switching to it.

    Yes that looks valid. It should go into your theme’s functions.php file.

    The location will be similar to: wp-content/themes/yourthemefolder/

    Thread Starter mira345

    (@mira345)

    Yeah that’s fine. I should put it in the functions.php right?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘make html default editor’ is closed to new replies.