Title: make html default editor
Last modified: August 21, 2016

---

# make html default editor

 *  Resolved [mira345](https://wordpress.org/support/users/mira345/)
 * (@mira345)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-html-default-editor/)
 * 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)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-html-default-editor/#post-4061411)
 * 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.
 *  [Lorenzo Orlando Caum](https://wordpress.org/support/users/lorenzocaum/)
 * (@lorenzocaum)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-html-default-editor/#post-4061417)
 * 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](https://wordpress.org/support/users/mira345/)
 * (@mira345)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/make-html-default-editor/#post-4061418)
 * 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.

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [html editor](https://wordpress.org/support/topic-tag/html-editor/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [mira345](https://wordpress.org/support/users/mira345/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/make-html-default-editor/#post-4061418)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
