Replies: 0
Hi… i am using user sync add on to sync my users to mailchimp..i want to add a custom tag when a new user is registered..
I created “Email Registration” tag on mailchimp backend and added this code to my functions.php
add_filter( 'mailchimp_sync_subscriber_data', function(MC4WP_MailChimp_Subscriber $subscriber) {
$subscriber->tags[] = 'Email Registration';
return $subscriber;
},10, 2);
but its not working.user email is syncing correctly to mailchimp but user tag is not added.please let me know what i am doing wrong
Thank You
- This topic was modified 1 minute ago by sarincm99.