From 01c00b97dec0a01741f3d6d5b3ed7f980873f349 Mon Sep 17 00:00:00 2001 From: MaxwellGarceau Date: Wed, 8 Jan 2025 22:01:01 -0500 Subject: [PATCH] Clarified logic for double opt-in --- mailchimp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mailchimp.php b/mailchimp.php index 341db44..9240cd7 100644 --- a/mailchimp.php +++ b/mailchimp.php @@ -971,8 +971,9 @@ function mailchimp_sf_subscribe_body( $merge, $igs, $email_type, $email, $status return $body; } - // Subscribe the user immediately unless double opt-in is enabled - // No need to check user $status because we're handling that before this point + // Subscribe the email immediately unless double opt-in is enabled + // "unsubscribed" and "subscribed" existing emails have been excluded at this stage + // "pending" emails should follow double opt-in rules $body->status = $double_optin ? 'pending' : 'subscribed'; return $body;