wp insert post – How to store Contact Form 7 data into CPT based on click function
Is there a way to store Contact Form 7 data into a Custom Post Type, based on a click function (instead of Submit)?
My form contains a lot of data (55 questions/input fields). I want to store all the data until question 50 into the Custom Post Type.
<div class="goto_final">Go to your information</div>
Is there a way to do this easily, calling a wp_insert or something. In fact insert any data that has been filled out. Any ideas on how to approach this? Any example with a random Post Type would be very awesome. Thanks a lot in advance!