Attachment does not work anymore
-
Hi, PDF Forms Filler for Contact Form 7 was working before i updated every plugin that i have, now that the pdf won’t attach anymore, i deactivated all the plugins that is connected to the contact 7, i have now 2 running plugins the contact 7 and Forms Filler for Contact Form 7. It is not working since the last update which is also when i was working my function.php, i added contactform7_before_send_mail function here is the code:
function contactform7_before_send_mail( $form_to_DB ) {
global $wpdb;
$form_to_DB = wpcf7_Submission::get_instance();
if ( $form_to_DB ) {
$formData = $form_to_DB->get_posted_data();
$playersname = $formData[‘players-name’];
$age = $formData[‘age’];
$yearsplayinghockey = $formData[‘of-years-playing-hockey’];
$today = date(“Y-m-d H:i:s”);$inserted = $wpdb->insert( ‘register_data’, array(
‘playersname’ => $playersname,
‘age’ => $age,
‘yearsplayinghockey’ => $yearsplayinghockey,
‘date_reg’ => $today), array( ‘%s’,’%s’,’%s’,’%s’ ) );i deleted this function but still not working, my wordpress is 5.2.4, and my contact form 7 is 5.1.4 i also had a feeling that maybe its because of the Pdf.Ninja API. i just don’t know what i did wrong when it was working the last day i check it.
The page I need help with: [log in to see the link]
The topic ‘Attachment does not work anymore’ is closed to new replies.