WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] make html default editor (4 posts)

  1. mira345
    Member
    Posted 11 months ago #

    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

  2. ClaytonJames
    Member
    Posted 11 months ago #

    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.

  3. Lorenzo Orlando Caum
    Member
    Posted 11 months ago #

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

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

  4. mira345
    Member
    Posted 11 months ago #

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

    Thanks!

Reply

You must log in to post.

About this Topic