WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey so I am trying to determine how Wordpress remembers which editor is being used for a particular post (HTML or Visual Editor (tinyMCE)). When you write a post, and then come back, it goes to the last used editor. I am assuming its a cookie of some sort (because I couldn't find any info in the database), but does anyone know where the code for this is?

share|improve this question
up vote 1 down vote accepted

wp-settings cookie screenshot

its stored in the cookie wp-settings-USERID, replace USERID with the id of the logged in user.

the two values are editor=tinymce or editor=html

share|improve this answer
Awesome thank you! – Shaan Oct 1 '11 at 6:15
I was curious about this myself, thank you Ijaas :-) – Lars Koudal Oct 1 '11 at 18:19

I don't know, but here's how I'd find out:

  1. Install Firecookie and find the name of the cookie.
  2. Do a search for that cookie name in the WP codebase, using any number of text-search tools: grep, ack-grep, your IDE's search function etc.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.