Plugin Author
zaus
(@zaus)
Sorry, wp.org doesn’t notify unless you specifically subscribe to a topic.
I actually just did this for a client, it involves:
1. Follow the ‘bypass’ example shown elsewhere in the forums and mentioned in the faq to a) skip making a list and instead save the request to a temp variable.
2) if you just need to send a separate email, do that right in the hook
3) otherwise, you’ll hook to the “on success” filter to attach it to the $form email.
I’ve done it for cf7, but not for ninja, so if you need more help feel free to contact me through my website for a consult.
Plugin Author
zaus
(@zaus)
In more detail:
1. You’ll need to hook here:
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L545
and return a response containing ‘response_bypass’ so that the following will skip making the regular remote post:
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L559
2. Also in that hook, using the contents that would have been posted (something like $args[‘body’]) you could manually send an email (wp_mail) or if you need to attach it to the regular contact form’s email then save it to a temporary variable.
3. To attach it to a form plugin’s email, you’ll need to hook to the following to get access to that $form, adding the contents you saved to the temporary variable in the step before.
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L625