Sanitize comments and custom fields
-
Hey!
I am trying to sanitize any comments that are being written on my site. After researching, I believe I need to use the wp_new_comment function to do this. However, I am unsure as to where I should be using this function at.
Also, I am trying to do the same for some some custom types which have custom fields. I have created custom templates to display these custom fields (i.e. single-project.php). I want to sanitize the custom fields, but once again, I am unsure as to where I should be using the sanitation functions at.
P.S. I am using the Twenty Eleven theme if that makes any difference.
Thanks a bunch for any help!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Sanitize comments and custom fields’ is closed to new replies.