Forum Replies Created
Viewing 1 post (of 1 total)
-
AuthorPosts
-
January 1, 2012 at 12:16 pm in reply to: Contact Form 7 Tips [Beginner to Advanced] | [ Updated in 2020] #133adminKeymaster
Contact Form 7 Drag and Drop Files Upload
Filedrop addon will help you to enable drag and drop files upload functionality. JavaScript will handle errors.
Download URL: https://ciphercoin.com/downloads/filedrop-contact-form-7/
Contact form 7 code generator
Just go to https://cf7.ciphercoin.com
and paste your html form code it will convert to cf7 shortcode.Contact form 7 checkbox value in email
Add checkbox name shortcode to mail section message body.
Example cf7 shortcode [checkbox checkbox-403] the n we want add [checkbox-403] in message body.Contact form 7 autoresponder hook
PHP123456789101112131415// ...in functions.phpadd_action('wpcf7_mail_sent', function ($cf7) {// Run code after the email has been sent$wpcf7 = WPCF7_ContactForm::get_current();$submission = WPCF7_Submission::get_instance();//Below statement will return all data submitted by form.$data = $submission->get_posted_data();//suppose you have a field which name is 'email' then you can access it by using following statement.$to = $data['email'];$subject = 'The subject';$body = 'The email body content';$headers = array('Content-Type: text/html; charset=UTF-8');wp_mail( $to, $subject, $message, '', array( '' ) );}); -
AuthorPosts
Viewing 1 post (of 1 total)