• Resolved antonv

    (@antonv)


    Hi, Is there a hook for after saving (not final submitting) similar to
    add_action('cf7_2_post_form_submitted_to_post', 'new_post_mapped',10,4);

    If not could you direct me to the code where I can add this hook, I need a
    add_action('cf7_2_post_form_saved_to_post', 'draft_post_mapped',10,4);

    Thanks
    Anton

    • This topic was modified 2 years, 6 months ago by antonv.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter antonv

    (@antonv)

    I found what I wanted in the code

    do_action('cf7_2_post_form_mapped_to_'.$this->post_properties['type'],$post_id, $cf7_form_data, $this->cf7_key);

    Thank you for well thought out, documented, and structured code

    Plugin Author Aurovrata Venet

    (@aurovrata)

    great. Marking this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook for after save’ is closed to new replies.