Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created April 20, 2021 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/66f1bcd1963c4a473a156c2fb058eac6 to your computer and use it in GitHub Desktop.
Save Pebblo/66f1bcd1963c4a473a156c2fb058eac6 to your computer and use it in GitHub Desktop.
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