Hi! I just spent a couple of hours trying to find a way to save the form submissions in the database. I’m doing this as a backup since we realized that several submissions never made it past the mail server’s junk filter. I managed to solve that with a smtp plugin but would like to prevent similar problems in the future.
So, I installed the “Contact Form DB” plugin by Michael Simpson and hoped to find a way to make it work… I didn’t. So I asked Michael Simpson if he was planing to add the Enfold form to it’s functionality. His reply was:
I haven’t looked at Enfold. I could be done if Enfold forms provides a code hook (callback) such that when a user makes a submission, CFDB can register a code function to receive the data. But if Enford doesn’t provide that, then it can’t be done. Ask on the Enford forum if they have such a thing and where it is documented.
So my question is if there’s a code hook and can I find documentation?
Cheers
Micke
Ps. Thanks for a great theme.
Hey Micke!
Open up /enfold/framework/php/class-form-generator.php and on line 625 you should see this.
//hook to stop execution here and do something different with the data
$proceed = apply_filters('avf_form_send', true, $new_post, $this->form_params);
The “avf_form_send” hook could probably work here.
Cheers!
Elliott