Can we add a filter prior to the DB insert?
-
I see the
do_action( 'cfdb7_before_save_data', $form_data );
in contact-form-cfdb-7.php which is useful to do other things with the form data, but could you add a filter before that so that we can manually include data with the form submissions?I’m requesting one line be added to this file above the
do_action()
mentioned above:$form_data = apply_filters('cfdb7_before_save_data', $form_data);
This will combine any other data that is manually hooked to it so we can store custom pieces of information along with each form submission.
I’ll be making a pull request on Github, but I wanted to mention it here too.
Edit: Here’s the pull request: https://github.com/arshidkv12/contact-form-cfdb7/pull/2
- The topic ‘Can we add a filter prior to the DB insert?’ is closed to new replies.