• I have a plugin that sent some form data to a third-party service when someone submits the form. For this, I use “wpcf7_mail_sent” hook. I am using CF7 Version 5.1.9. But when I am updating to version 5.3.1, the data are not being sent to that third party service. That means the plugin is not working.
    Is there any issue with “wpcf7_mail_sent” hook with the latest version of CF7?

    I am using WP version 5.5.3

    The page I need help with: [log in to see the link]

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

    (@takayukister)

    No issue has been reported about the wpcf7_mail_sent hook itself. Double check your callback function.

    Thread Starter srj

    (@srj)

    Thanks for your reply.
    Actually, I am seeing the below codes are not working.

    $submission = WPCF7_Submission::get_instance();
    
    if ( $submission ) {
        $posted_data = $submission->get_posted_data();
        $submitted_contact_form_id = $posted_data['_wpcf7'];
    }
    $postid 	 = $posted_data['hidden-post-id'];

    I am not getting the hidden post value after updating to CF7 5.2 onwards.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“wpcf7_mail_sent” not working.’ is closed to new replies.