Removing existing customer tags
-
I’m trying to add and remove customer tags based on certain conditions using the following provided on the plugin github page: https://github.com/mailchimp/mc-woocommerce/wiki/Editing-Member-Tags
I can add tags no problem, but I cant remove tags that were previously added. I have followed the examples provided on the page linked to no avail. Can this be actually done? The page linked above suggests you can, however it’s worded in a way that it might .just be the array of new tags that you can edit, not the existing tags on the customers entry on mailchimp.
Use case: using the “mailchimp_user_tags” filter, when the list is synced, I add a tag if the user has purchased a certain product within the last 6 months (this works), if the user has not purchased something in the last 6 months, remove that tag if it exists. (this part doesn’t work)
- The topic ‘Removing existing customer tags’ is closed to new replies.