Breaking update to 5.4 – add_uploaded_file
-
Hi,
I have installed v.5.4 which broke my website. I have looked at the docs for the changes in add_uploaded_file, but I didn’t get any working result.
This is the code excerpt:
add_action( ‘wpcf7_before_send_mail’, ‘create_send_ebook’ );
function create_send_ebook( $cf7 ) {
…..
…..
….
//set filenames
$submission = WPCF7_Submission::get_instance();
if ( $submission ) {
…..
….
….
//Let’go to the file attachment!
$submission->add_uploaded_file(‘ebook’, $copy_to_send);
}
….
….
….
$cf7->set_properties( array( ‘mail_2’ => $mail2 ) );
}
}
}Is there anyone who could help me in putting again my website in production?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Breaking update to 5.4 – add_uploaded_file’ is closed to new replies.