How to create record when sending emails in contact form 7?

There should be a functional question answer. On the website the person asks a question and the record should display in the custom post type "Questions and answers" in the drafts section.
Now, with successfully completed forms cf7 letters in the mail and written to the database via the plugin cf7 DB. How to do that would have created the entry in the section "questions and answers"
July 2nd 19 at 14:17
1 answer
July 2nd 19 at 14:19
In this case, the plugin CF7 DB you don't need the active, and need to access its code and see how they do it. The logic is simple - catch data on a hook wpcf7_before_send_mail or wpcf7_submit, validarea and create a new post should be the type using the function wp_insert_post().

Find more questions by tags WordPress