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

Just looking for some history on the output of category_description()

I have categories whose "description" fields are formatted with rich text and I'm trying to understand the differences in WP version with respect to the output of this method so that I can do a version check if necessary to implement desired output.

For example, before 3.0.1, it appears that category_description() returned the output stripped of any html markup. However, with the current 3.3.1 release, the output appears to be raw.

share|improve this question
up vote 1 down vote accepted

Actually HTML is stripped on input, using wp_filter_kses function hooked into pre_term_description filter. So if this hook isn't removed HTML would be stripped.

share|improve this answer
OK, I'm already calling that filter, so no problems. Thanks for the answer! – N2Mystic Feb 9 '12 at 15:54
You're very welcome. – Mamaduka Feb 9 '12 at 16:53

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.