Snerfus
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] wpcf7_before_send_mail does not pass posted_dataericsyd, no, I do not, I had to look through the source code to find that new value.
Karthi, the $wpcf7 variable is no longer accessible, you need to do it as above ($submission = WPCF7_Submission::get_instance();) etc,
Forum: Plugins
In reply to: [Contact Form 7] Convert PDF File$cf7->uploaded_files no longer accesses the files, in CF7 3.9
CF7 has changed the way to access post data and files, in 3.9
[code]
function my_wpcf7_before_send_mail($cf7) {
$submission = WPCF7_Submission::get_instance();
$files = $submission->uploaded_files();
[/code]
And $files will contain the array of the files.Forum: Plugins
In reply to: [Contact Form 7] Managing file attachment w/Contact Form 7This post deals with the changes, and the hook you need to use.
Bottom post shows how to access the files.http://ww.wp.xz.cn/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data?replies=4
Forum: Plugins
In reply to: [Contact Form 7] wpcf7_before_send_mail does not pass posted_dataAnd then $submission->uploaded_files() will get all the attached files.
Such a big change.Forum: Plugins
In reply to: [Contact Form 7] Can't get posted_dataLooks like it is $submission->uploaded_files()
What a huge change for 3.9, would have been nice if this was properly documented, its a huge change.Forum: Plugins
In reply to: [Contact Form 7] Can't get posted_dataOk, that solved my issue for the posted_data, but it does not work for uploaded_files (trying get_uploaded_files(), and it crashes)
$submission->uploaded_files[‘file-787’], also does not work (crash)Thanks