wpcf7_before_send_mail does not pass posted_data
-
Having updated CF7 to 3.9, my hook for wpcf7_before_send_mail is now showing a blank value for posted_data.
I have made it output to the error_log, and it comes up empty. Doing a print_r on the $cf7 does export a lot of values, but I see nothimng for posted_data.[code]
add_action('wpcf7_before_send_mail', 'my_wpcf7_save');function my_wpcf7_save($cf7) {
error_log(print_r($cf7->posted_data, true)); //blank
error_log(print_r($cf7, true)); //not blank, all sorts of stuffreturn $cf7;
}
[/code]Has this been changed for 3.9, as 3.8x , everything worked fine.
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘wpcf7_before_send_mail does not pass posted_data’ is closed to new replies.