Skip to content

Instantly share code, notes, and snippets.

View downtownrob's full-sized avatar

Rob Marlbrough downtownrob

View GitHub Profile
@downtownrob
downtownrob / functions.php
Created August 17, 2012 18:54 — forked from victor-falcon/gist:2021125
Saving Contact Form 7 data into a MailChimp List with checkbox and groupings
<?php
/*
Use: Add this code to the Wordpress theme's functions.php file.
Requires Mailchimp's MCAPI.class.php in the same folder as the theme's functions.php file.
Hi. I've tweaked this fork to add FNAME LNAME and GROUPINGS support, making this a super easy way to
use CF7 with Mailchimp's API, with a checkbox asking if they want to subscribe, without double-opt-in verification.
Use: Create a CF7 form with text fields first-name, last-name, your-email, and a checkbox field named subscribe, plus any others you like: