I am in the same situation.
Can you tell us if the next update will fix the problem or if another function exists?
Thank you so much !
// Create the new wordpress action hook before sending the email from CF7
add_action( 'wpcf7_before_send_mail', 'my_conversion' );
function my_conversion( $contact_form ) {
$submission = WPCF7_Submission::get_instance();
$form_id = $contact_form->id();
// Get the post data and other post meta values
if ( $form_id == 1363 ) {
if ( $submission ) {
$posted_data = $submission->get_posted_data();
$remote_ip = $submission->get_meta( 'remote_ip' );
$url = $submission->get_meta( 'url' );
$timestamp = gmdate("Y-m-d H:i:s", $submission->get_meta( 'timestamp' ));
$title = wpcf7_special_mail_tag( '', '_post_title', '' );
Hi,
I have the same problem.
Since cf7 v5.2.2 my own function to insert data in sellsy doesn’t work anymore.
$posted_data = $submission->get_posted_data();
How can I solve it ?
Thanks,
Have a nice day