• Mr_sordum

    (@paulcityhopper)


    Hey,

    first of all: Great Plugin, thanks for that!

    In want to save the first Step. So creat a new post blablabla…
    Currently I hooked into:

    add_action('wpcf7_before_send_mail', 'wpcf7_save_conversion');

    And I additional create a form tag “save_conversion” which I added to the first step form.

    Currently he saves all steps… so maybe you have a tip for me how to do?

    Cheerz
    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hi,

    I’m not sure I understand what you’re trying to do. What does the wpcf7_save_conversion function do? You can use the Flamingo plugin to save fields to the database.

    Thread Starter Mr_sordum

    (@paulcityhopper)

    I want to create a post only if step 2 is submitted!

    Two Steps Form:
    1. Do no create post
    2. Create Post

    Plugin Author webheadcoder

    (@webheadllc)

    You can try to hook into the ‘wpcf7_mail_sent’ and use:

    $posted_data = WPCF7_Submission::get_instance()->get_posted_data();

    This will get you all the submitted fields. From there you’ll need to determine if it’s the last step or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hook into First Step => Save as Post’ is closed to new replies.