How to add MailChimp subscriber tags?


I’ve also tried the following

add_filter('mc4wp_integration_subscriber_data', function (MC4WP_MailChimp_Subscriber $subscriber, $form_id) {
    if ($form_id == 250328) {
        $subscriber->tags[] = 'Tag 1';
    } else if ($form_id == 250329) {
        $subscriber->tags[] = 'Tag 2';
    return $subscriber;
}, 10, 2);

Though this is not resolved, I am marking as such because I think this question belongs on the MC4WP support forum rather than here.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer