I was having the same issue… there’s been some major changes in 3.9.
See: http://contactform7.com/2014/07/02/contact-form-7-39-beta/
Notice how the access and visibility has changed.
Thanks so much Rob, that helps a lot.
Here’s how you can get the data:
add_action('wpcf7_before_send_mail', 'my_wpcf7_before_send_mail');
function my_wpcf7_before_send_mail($form) {
$submission = WPCF7_Submission::get_instance();
$data = $submission->get_posted_data();
}
Even it’s not my issue – that solved it for me.
Thanks Rob 🙂
Ok, 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
Looks 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.
I agree, there should be some dev docs instead of browsing through a blog… even the blog doesn’t document everything.