• 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 5 years, 1 month ago by sarincm99.
  • The topic ‘add custom tags not working’ is closed to new replies.