rwilki
Member
Posted 4 months ago #
Great plugin. I've used it for a while. Is there a way to hook into the kses filter or have some other filter that strips html in the fields? Obviously captcha helps eliminate some spam, but I don't want people manually throwing links and scripts into the fields.
http://wordpress.org/extend/plugins/contact-form-7/
You can use wpcf7_mail_tag_replaced filter hook in includes/classes.php for such purposes.
rwilki
Member
Posted 4 months ago #
Thanks Takauki I think I see that filter in the file already
Line 659
$replaced = apply_filters( 'wpcf7_mail_tag_replaced', $replaced,
So, I have no idea where your other code goes...
rwilki
Member
Posted 4 months ago #
Oh do you mean replacing that with the KSES filter?
? No, make your own function in somewhere you like, and hook it into the filter of wpcf7_mail_tag_replaced.
rwilki
Member
Posted 4 months ago #
Still don't understand. Thanks anyway.