Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created March 15, 2019 12:16
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/224d83e6c58fded8b6202293e3f005a1 to your computer and use it in GitHub Desktop.
Save Pebblo/224d83e6c58fded8b6202293e3f005a1 to your computer and use it in GitHub Desktop.
Example of how to disable the EE3 Double opt-in emails
<?php //Please do no include the opening PHP tag if you already have one.
add_filter('event_espresso_mailchimp_list_subscribe_merge_vars', 'tw_ee3_mailchimp_merge_vars', 10, 4);
function tw_ee3_mailchimp_merge_vars( $mergeVars, $eventId, $mailchimpListId, $api) {
$mergeVars['status_if_new'] = 'subscribed';
return $mergeVars;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment