markgrenville
Forum Replies Created
-
Thanks for the clarification Lap and Harish.
Really nice to see such an active community.
Just to be clear. Is this the trigger that would be used for UltimateMember?
mc4wp_integration_wp-registration-form_subscriber_dataOr is there no slug for ultimate member yet?
FYI for anyone needing this functionality in the future. If you’re willing to hack the module I was able to achieve my requirements by editing:
includes/integrations/class-integration.php (line: 439)$subscriber = apply_filters( 'mc4wp_integration_subscriber_data', $subscriber, $integration );
Then I was able to use this use this filter in my functions.php
add_filter('mc4wp_integration_subscriber_data', 'mailchimpFilter', 10, 2); function mailchimpFilter($subscriber, $integration) { if ($integration->name == "UltimateMember") { $subscriber->tags[] = 'Member'; } if ($integration->name == "WooCommerce Checkout") { $subscriber->tags[] = 'Customer'; } if ($integration->name == "Contact Form 7") { $subscriber->tags[] = 'Contact'; } return $subscriber; };
The problem with this is that you won’t be able to update the plugin. To ensure that automatic updates aren’t run then you can edit the version number:
mailchimp-for-wp.php (line: 6)Version: 100.8.1
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Does not update tags on member list.This seems to be working now?
Do you care to tell me how this is possible or send a link please?
I see that you have this hook. mc4wp_integration_subscriber_data is it possible to pick up the integration source when using this hook?
Is it theoretically possible to pass the $integration to the mc4wp_integration_subscriber_data filter in class-integration.php:439 in order to determine which integration is running and hook that function?
Also is it possible to set default tags and then use this hook to unset them?
I really feel like this feature is lacking with the direction mailchimp is moving. Tags are no longer a sub category, they are now a main category. Audiences (list) have become almost irrelevant.