Work with WordPress long enough and you’re bound to come across something called “kses” or the wp_kses function. Perhaps this comes with writing your own code, or it comes with reading someone else’s source. Or maybe in reading core.

Whatever the case, the function has a weird name, right?
I mean, a lot of the WordPress API functions have clear names so it’s easy to know what you’re doing. This one is more of the exception than the rule. That doesn’t change anything, does it? I mean, it still raises the questions:
- What’s the purpose of the function,
- Why does it matter,
- Why should we use it,
- And what purpose do its variations serve?
We should be asking these questions for all functions with which we work. But when the name isn’t clear, the answers aren’t as easy to deduce.
