Thanks for the follow-up.OK. The closest I can get you on this right now, is to use MERGE vars for MailChimp.
Here's how I would handle it.1. Use just one Mailing List at MailChimp for all Members.
2. Log into your MailChimp account and add a new MERGE field to your list, with the name:
S2_CCAPS3. Create this directory and file in your WordPress installation with s2Member installed.
/wp-content/mu-plugins/s2-hacks.php
- Code: Select all
<?php
add_filter ("ws_plugin__s2member_mailchimp_merge_array", "s2_ccaps_merge", 10, 2);
function s2_ccaps_merge ($merge = array (), $vars = array ())
{
return array_merge ($merge, array ("S2_CCAPS" => $vars["ccaps"]));
}
?>
Now, when you send email to your Subscribers, you can filter the list of recipients based on the value of the
S2_CCAPS MERGE field. MailChimp allows you to do this. The hack above will automatically fill the value of the
S2_CCAPS MERGE field at MailChimp, with a comma-delimited list of the Custom Capabilities that each Member has. This gives you maximum flexibility when you send out your email updates.