Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have following types of theme options inputs, which I need to validate.

$numbers = "#1234";
$email = "abc@example.com";
$simeple_text = "How's going?";
$code = "<script type='text/javascript'></script>";

I want to know which of following tags should be used for which of the above types? I have tried to read the wordpress documentation of the following functions, but could not find the clear answer.

wp_filter_post_kses
wp_filter_nohtml_kses
wp_kses_stripslashes
share|improve this question
add comment

1 Answer

There's much more than just those three functions. As it would be too much to write 5 blog posts (or even a whole book) about it, I'm just going to give you some reads as starting points:

  • One of the rare good articles on WP Tuts+ 1)
  • QueryPosts.com is the way to read source code, if you want to avoid digging into core with your IDE. 2)

1) If you wonder, why it rocks: It's written by our own @StephenHarris ;)

2) If you (are again) wonder(ing), why it rocks: It's developed by our own @Rarst ;)

share|improve this answer
1  
_offtopic: "little bobby tables" always gets me laughing –  peteroak Aug 1 '12 at 6:02
add comment

Your Answer

 
discard

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.