• Resolved zududavid

    (@zududavid)


    Hello – my previous post was tagged as resolved but unfortunately wasn’t quite answered: Previous Post: HERE

    I am a developer, and my issue is that I’ve been using this guide, but the code example provided is not working. It IS adding tags no problem, but it is not removing them. Even using the exact example with the tag included does not seem to work:

    function my_tags($tags) {
            foreach ($tags as $tag) {
            if ($tag['name'] == 'customer'){
                $tag['status'] = 'inactive';
            }    
        }
        return $tags;
    }
    
    add_filter('mailchimp_user_tags', 'my_tags', 10, 1);

    The above should remove the tag “customer” from each woocommerce user in mailchimp after syncing, correct? This is unfortunately not working. Is there something I’m missing?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing existing customer tags not working’ is closed to new replies.