Contact Form 7 pre email processing [closed]

Contact form 7 changed classes in 3.9 version. Now this is how it goes. add_action( ‘wpcf7_before_send_mail’, ‘process_form’ ); function process_form( $cf7 ) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); } if( $cf7->id() == 20 ) { $wpdb->insert(‘newsletter_signups’, array( ‘name’ => $posted_data[‘name’], ’email’ => $posted_data[’email’] ) ); } } Read more … Read more

CF7 Split/Separate fields [closed]

could be possible with jQuery. This Idea is to add a Hidden field and set value to it with jquery. $(“#name_field_id”).focusout(function(){ str = $(this).val(); if(str){ s = str.split(/(?<=^\S+)\s/); //split string in name field after first space found. $(“#hidden_field_id”).val(s[1]); //s[1] value after the first space set to hidden field. } }); then you can use the … Read more

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