I have an additional security requirement (in addition to SSL) and I'm looking for a method (either a plugin or custom solution) of how to encrypt and store submissions from Contact Form 7 in the database. For example there are plugins such as Flamingo that allow the submissions to to be stored in the DB, there are fore other form platforms such as Gravitate Encryption that encrypt the submissions in the DB. Is there an option or method to encrypt CF7 submission data within the SQL database?
closed as off-topic by Howdy_McGee♦ Jul 25 '17 at 21:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers' support routes." – Howdy_McGee
As @kero said, use a CF7 hook. I'd use the
wpcf7_before_send_mail hook. Grab data from the CF7 form object's fields, and use those values to store data.
I wrote a post to myself on how to get data from the CF7 form object here: http://securitydawg.com/changing-contact-form-7-with-the-wpcf7_before_send_mail-hook/ . You could use that to get started, just insert your code/function that reads the fields from the CF7 object and then store that data.