Title: Custom validation code not triggering
Last modified: March 7, 2018

---

# Custom validation code not triggering

 *  [nikolagavric](https://wordpress.org/support/users/nikolagavric/)
 * (@nikolagavric)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-validation-code-not-triggering/)
 * Hi!
 * I’ve created a plugin to do some stuff, including validating a field. When I 
   try to do so (following [https://contactform7.com/2015/03/28/custom-validation/](https://contactform7.com/2015/03/28/custom-validation/))
   I can’t get it to trigger. I’m running the script with xDebug and the **add_filter**
   is triggered, but then it just jumps the callback function, doesn’t go into it
   at all. Why could that be? I can’t understand what I’m doing wrong and I’ve tried
   it all..
 * Thanks!

The topic ‘Custom validation code not triggering’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 0 replies
 * 1 participant
 * Last reply from: [nikolagavric](https://wordpress.org/support/users/nikolagavric/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/custom-validation-code-not-triggering/)
 * Status: not resolved