Hi,
The code above didn’t work for me, so i used this:
add_filter( 'mailchimp_sync_subscriber_data', function( $subscriber, $user ) {
$subscriber->interests[ "acaee6bb67" ] = true;
$subscriber->interests[ "cb9d8ba3ec" ] = true;
return $subscriber;
}, 10, 2 );
But if a user opts out from a group, i don’t want them to get added back in after the next sync.
So, after a new registration the user is synced with Mailchimp and directly added to both groups. After that, the user must have the possibility to opt out for one or both of the groups and not automatically get added back in. Is there a possibility for this?
(maybe check first if one of the groups is already checked out (if yes, don’t update) or only update the groups if a user is new?)
-
This reply was modified 6 years, 1 month ago by
justingr.
-
This reply was modified 6 years, 1 month ago by
justingr.