Title: Custom Hook Help
Last modified: August 31, 2016

---

# Custom Hook Help

 *  [MatthewJMariner](https://wordpress.org/support/users/matthewjmariner/)
 * (@matthewjmariner)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-hook-help/)
 * Hello,
 * I need to create a hook that allows me to;
    (1) plug in the information from 
   the form into a 3rd party credit card processing API -> (2) receive a “valid”
   or “invalid” credit card response from the API -> (3.1) If invalid, then POST
   request die; (3.2) If valid, send POST data to two other API’s.
 * ~~~~~~~~
 * Is this possible with Contact Form 7?
 * If so what should I hook into?
 * ‘wpcf7_before_send’mail’ ?
 * Thanks,
    Matthew
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [MatthewJMariner](https://wordpress.org/support/users/matthewjmariner/)
 * (@matthewjmariner)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-hook-help/#post-6935518)
 * Anyone?
 * I was thinking of:
 *  // #1 –> Skip Mail
    // #2 –> Parse the submission and turn it into GET API cURL
   request // #3 –> Get response from API // #4 –> Send The Info To Other API’S //#
   5 –> API1 // #6 –> API2 // #7 –> Alert User Via email
 * _[ [No bumping please](http://codex.wordpress.org/Forum_Welcome#No_Bumping). ]_
 *  [Aisaid](https://wordpress.org/support/users/aisaid/)
 * (@aisaid)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-hook-help/#post-6935526)
 * [http://hookr.io/plugins/contact-form-7/4.3.1/hooks](http://hookr.io/plugins/contact-form-7/4.3.1/hooks)
 * But for me some reason stopped working hooks.
    I keep track of the addition of
   hooks, but the call to its function does not occur.
 *     ```
       add_action( "wpcf7_before_send_mail" , "add_mail_order_hook" );
       function add_mail_order_hook($contact_form) {...}
       ```
   
 * Help please where to dig

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Hook Help’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aisaid](https://wordpress.org/support/users/aisaid/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/custom-hook-help/#post-6935526)
 * Status: not resolved