Reputation
1,320
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 14 40
Impact
~104k people reached

Mar
12
accepted What is the difference between strip_tags and wp_filter_nohtml_kses?
Mar
12
accepted What is the advantage of using wp_mail?
Mar
12
comment What is the difference between strip_tags and wp_filter_nohtml_kses?
I see what you are saying about the kses functions being designed for security, but if strip_tags actually strips all the tags then do you mean that strip_tags might possibly miss some html tag? Or are we thinking that that evil code might somehow get around strip_tags. I dont really understand why I'd use wp_filter_nohtml_kses if it's expensive to run and strip_tags does the same thing?
Mar
12
asked What is the advantage of using wp_mail?
Mar
12
answered Allow access to stand-alone php file Wordpress
Mar
12
comment How to use other shortcodes inside Contact form 7- forms?
Not sure that you can do this. Shortcodes have to be in a page or post, don't they. I don't think you can put a shortcode between form elements. Where would you put them? ... in the contact form 7 settings? You cant do that there AFAIK ( unless you're following some contact form 7 instructions I haven't heard of).
Mar
12
asked What is the difference between strip_tags and wp_filter_nohtml_kses?
Mar
10
comment Contact Form Security
aah yes that's the case
Mar
10
accepted Contact Form Security
Mar
10
comment Contact Form Security
That's very helpful, but I'm not 100% sure about where exactly to check the nonce. I suppose you put the nonce as usual in a hidden field, but then would I then check it before I sent the email (in the same way it's typically used of checking it before writing to the DB)?
Mar
10
asked Contact Form Security
Mar
9
accepted What is the difference between esc_html and wp_filter_nohtml_kses?
Mar
9
comment What is the difference between esc_html and wp_filter_nohtml_kses?
Thanks. I think it's hard enough to appreciate the differences between some of these validation functions. I mustn't have been paying enough attention to the distinction between 'escape' and 'strip'.
Mar
9
asked What is the difference between esc_html and wp_filter_nohtml_kses?
Mar
7
accepted How important is it to enqueue a theme's stylesheet?
Mar
7
asked How important is it to enqueue a theme's stylesheet?
Mar
7
accepted Tabbed theme options query about add_settings_section callback function
Mar
7
comment Tabbed theme options query about add_settings_section callback function
Thanks. I'm looking at your tutorial now. What do you mean by internally though? Do you mean via some part of the settings API, or via my own code. I don't see yet how having more than one register_setting() is the problem. Where I'm stumped is that if the add_settings section() calls can only be printed out using do_settings_sections(), then seeing as that function prints out all the sections of the entire options page, I seem to need a separate options page for each tab, which I cant have as I only have one actual options page (divided into tabs). Clearly my understanding is wrong somewhere?
Mar
7
comment Tabbed theme options query about add_settings_section callback function
Thanks Kaiser, I just thought it would be easier to read with those functions highlighted somehow - I didn't think putting them into blocks would work as they were part of the flow of the paragraph but I've removed the bold now.
Mar
7
revised Tabbed theme options query about add_settings_section callback function
removed bold highlighting