How to add MailChimp subscriber tags?
-
I am integrating HTML Forms with our MC4WP PRO plugin. The integration works as expected on our current form, however, I need to add multiple forms and subscriber tags. I am trying to add the tags based on the form id but nothing I’ve tried is working. I’ve looked around for examples but cannot find anything. What am I missing here?
add_filter('mc4wp_integration_subscriber_data', function (MC4WP_MailChimp_Subscriber $subscriber, $hf_form) { if ($hf_form->form_id == 250328) { $subscriber->tags[] = 'Tag 1'; } else if ($hf_form->form_id == 250329) { $subscriber->tags[] = 'Tag 2'; } return $subscriber; }, 10, 2);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add MailChimp subscriber tags?’ is closed to new replies.