Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of how you can add tags into the subscribe_args used during the MailChimp subscription call.
<?php //Please do not include the opneing PHP tag if you already have one.
add_filter('FHEE__EE_MCI_Controller__mci_submit_to_mailchimp__subscribe_args', 'tw_ee_add_tags_on_mc_subscribe_call', 10, 3);
function tw_ee_add_tags_on_mc_subscribe_call( $subscribe_args, $registration, $EVT_ID ) {
$subscribe_args['tags'] = array('Test 1', 'Test 2', 'Test 3');
return $subscribe_args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment