• Resolved vwkishan

    (@vwkishan)


    Hello I need before submit hook.

    I insert form value in anther post type so please in need before submit hook.
    please tell which hook i use???

    • This topic was modified 5 months, 1 week ago by  vwkishan.
Viewing 1 replies (of 1 total)
  • Plugin Author Jared Atchison

    (@jaredatch)

    Hey vwkishan,

    Thanks for reaching out.

    We have hooks in place that let you take the submitted form data and do other things with it. Commonly they are using to send the form data to 3rd party services and APIs, but you could just as well take that data and create a post using it. The hooks you’d want to look into are wpforms_process_complete and wpforms_process_complete_{$form_id} which are located in class-process.php.

    Our friend Bill Erickson wrote a tutorial that uses this. Check out https://www.billerickson.net/contact-form-integration/.

    If you don’t want to mess with code and hooks, we do have a Post Submissions addon for our Pro and Ultimate license levels, which can transfer entry data to WordPress posts or custom post types. You can read more about how that would work for a regular post here and for a custom post type here (specifically, an event calendar — though this concept can be applied to other custom post types, as well).

    I hope that helps! Could you let us know if you have any other questions about this?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.