Skip to content

Instantly share code, notes, and snippets.

Created Mar 15, 2019
What would you like to do?
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