Closed efc closed 8 months ago
Hi @efc, thank you for this submission! This code is now merged with a couple of tweaks:
pmpromc_update_audience_members_data
sync_tags
with $data->sync_tags = true
Thank you again for your contribution!
Thanks, David! Great to see this in the plugin.
Sometimes a user of the add-on may need to modify the body parameters of the MailChimp API call. In our case, we need to do this because we are passing along tags to MailChimp and we want these tags to replace any tags already existing on MailChimp. The API allows for this with the
sync_tags
body parameter, but currently the add-on does not include that parameter. This filter allows us to add thesync_tags
parameter when needed.With this commit in place we can do the following:
Without the
sync_tags
parameter MailChimp will, by default, only add tags to a list member. With this change we can ask MailChimp to sync these tags for the member. Others may think of further uses for this new filter.Note that this, in part, would help satisfy this enhancement request for users who are comfortable using filters.