Created
March 15, 2019 12:16
-
-
Save Pebblo/224d83e6c58fded8b6202293e3f005a1 to your computer and use it in GitHub Desktop.
Example of how to disable the EE3 Double opt-in emails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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