• Is there a function or hook where I can get a list of all of the image sources before mail send. The $_POST data only returns the zip file name.

Viewing 1 replies (of 1 total)
  • Late answer but
    look at the hook wpcf7_before_send_mail

    function _cf7_api_sender($contact_form)
    {
    $title = $contact_form->title;
    if ($title === ‘My form’) {
    $submission = WPCF7_Submission::get_instance();
    $files = $submission->uploaded_files();
    // do what you want with the files
    }
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Get list of all image sources before mail send’ is closed to new replies.