Tag Info

New answers tagged

1

Try this instead. There was some internal restructuring in CF7 3.9. add_action('wpcf7_before_send_mail','send_pdf'); function send_pdf( $cf7 ) { $id = $cf7->id(); if ($id==741){ $submission = WPCF7_Submission::get_instance(); $submission->add_uploaded_file('pdf', get_template_directory().'/test.pdf'); } } This should ...


0

I'd suggest a theme customization. On wp-admin, save the artist's email on a custom field, maybe 'artist-email'. Next add a form on the single-artist.php to send the message, sender name and sender email. Still on the form, add the artist $post->ID as artist-id and contact_artist as action, both as hidden inputs. Use ...



Top 50 recent answers are included