[Plugin: MailChimp List Subscribe Form] Modification to Mailchimp that allows hidden fields to be us
-
In using the mailchimp plugin I was not able to select and send hidden fields during the signup.
I specifically wanted to track if someone was opting in for the ebook or special video presentation.
I could send hidden fields — but I could not select the data that went into those fields.
By modifying a few small portions of the mailchimp plugin I was able to accomplish what I needed. I’m hoping that if the devs see the code they can incorporate something like this in a future update so I don’t have to hack the plugin every time it is updated. I know this is bad procedure to hack the plugin. But, I needed this feature.
Even though the code changes are small I will post in several entries so I don’t hit the code limit.
In mailchimp.php
function mailchimpSF_shortcode($atts, $content = null ) { $atts['content'] = $content; ob_start(); mailchimpSF_signup_form($atts); return ob_get_clean(); }
Stuffed the $content into the $atts, then feed the $atts into the function call for mailchimpSF_signup_form.
mailchimpSF_signup_form is already set to accept the $args. So might as well ??
- The topic ‘[Plugin: MailChimp List Subscribe Form] Modification to Mailchimp that allows hidden fields to be us’ is closed to new replies.