Get value of contact form 7 radio button [closed]

Depending when you’d like to take the action you should change the hook – I’ve chosen wpcf7_before_send_mail – your function function wpcf7_cstm_function($contact_form) { $title = $contact_form->title; $submission = WPCF7_Submission::get_instance(); if ($submission) { $posted_data = $submission->get_posted_data(); $txt = isset($posted_data[‘txt’])?$posted_data[‘txt’]:”; $text2 = isset($posted_data[‘txt2’])?$posted_data[‘txt2’]:”; $radio = isset($posted_data[‘radio’][0])?$posted_data[‘radio’][0]:”; // do something with your data } } add_action(“wpcf7_before_send_mail”, “wpcf7_cstm_function”); Explanation: … Read more

Store and Encrypt Contact Form 7 Submissions in Database? [closed]

As @kero said, use a CF7 hook. I’d use the wpcf7_before_send_mail hook. Grab data from the CF7 form object’s fields, and use those values to store data. I wrote a post to myself on how to get data from the CF7 form object here: http://securitydawg.com/changing-contact-form-7-with-the-wpcf7_before_send_mail-hook/ . You could use that to get started, just insert … Read more

How to programmatically send additional notification emails in Contact form 7 [closed]

You can manipulate recipients just before sending out the emails with the hook wpcf7_before_send_mail. Here is a simple script that adds an extra recipient: add_action( ‘wpcf7_before_send_mail’, ‘add_my_second_recipient’, 10, 1 ); function add_my_second_recipient($instance) { $properites = $instance->get_properties(); // use below part if you want to add recipient based on the submitted data /* $submission = WPCF7_Submission::get_instance(); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)