adherbst
Forum Replies Created
-
Forum: Plugins
In reply to: Contact form 7 insert value into databaseTurns out Contact Form 7 has a new way of retrieving the posted data. You replace
$emailadres = $wpcf7_data->posted_data['your-email'];with
$submission = WPCF7_Submission::get_instance(); if($submission) { $data = $submission->get_posted_data(); $emailadres = $data['your-email']; $wpdb->insert(... }I found that out by looking through the code of the Contact Form DB plugin which might be a great general purpose plugin for the kind of thing you’re doing.
Forum: Plugins
In reply to: [Constant Contact for WordPress] do_shortcode/do_action for v 3.1.4?I inserted this in KWSConstantContact.php on line 190 and now it works:
// Update the contact details
if(is_array($data->lists) && is_array($existingContact->lists)) {
$data->lists = array_merge($data->lists, $existingContact->lists);
}
$modifiedContact = $existingContact->update($data);It would be good to have a per-form option for this.
Forum: Plugins
In reply to: [Constant Contact for WordPress] do_shortcode/do_action for v 3.1.4?Solved that problem, but I have another. For the shortcode, I didn’t put echo in front of do_shortcode. It should be:
<? echo do_shortcode(‘[constantcontactapi formid=”1″ lists=”5″]’); ?>
Now my problem is that it is replacing the contact’s email lists with the one from the form; I just want it to append it. Is that possible?