I’ve solved with this :
add_filter( ‘mailchimp_sync_user_data’, function( $data, $user) {
$data[‘MMERGE4’] = $user->description;
return $data;
}, 10, 2 );
Hello parentesikuadra,
Thanks for the update. I’m glad that the issue is resolved. Your 2nd code looks correct as you need to retrieve user data from user table.
If you run into any other issues, please feel free to let us know.
Hello, I am having a similar problem.
I wanted to create a segment in my list of those how have registered on the website and those are just signed up on the list. And ideally have new website registrations be added into that segment.
I decided the best way was to sync the username and create a segment within the list of those with a username (because it would mean they are registered on the website.
I added the following to the functions.php:
add_filter( ‘mailchimp_sync_user_data’, function( $data, $user) {
$data[‘UNAME’] = $user->user_login;
return $data;
}, 10, 2 );
But it doesn’t seem to have been added to the fields in the “wordpress user sync option”.
I’ve added Username as a field in the Mailchimp list and assigned it UNAME as the mergetag.
In the mailchimp wordpress sync settings, the drop down shows me email, First name, and last name.
Any ideas?
Hey Akaii,
Please note, to sync username to your MailChimp.com list, you do not need to use our filter.
- First go to “MailChimp for WP” in your WordPress backend and click on the “Renew MailChimp Lists” button. This will pull in data about the new UNAME field you have created.
- Next to go “MailChimp for WP > User Sync” and and in the additional fields section, add
user_login in the “User field” and then from the dropdown select field next to it, please select the “UNAME” field you have created.
- Click Save changes and you are good to go.
This should now sync the username of a user to the new field you have created in your MailChimp.com List.
I’m glad it did Akaii, thanks for letting us know!
Should you have a quick minute to spare, a plugin review here on ww.wp.xz.cn would make us quite happy. π
Hello, i’ve another problem… If i delete user in my wordpress i would like that this disappear also from my list on mailchimp.. How is this possible ?
Thanks.
Hi parentesikuadra,
This is actually a known bug in the current version. We’ll be pushing out an update that fixes this early next week!
PS. If you’re in a hurry, you can download the development version of the plugin from GitHub: https://github.com/ibericode/mailchimp-sync
Hi Danny, it should remove right now from the list the user that i’ve not on wordpress ?
I’ve tried to sync but still have deleted WP users in my Mailchimp list..
Thankssss
The plugin also right now, doens’t update automatically the field when i modify them on my WordPress user section…
Have you some idea?
Thanks
Hi Danny, i still continue having the same issue.
Did you find a solution ?
Thank you
Hi parentesikuadra,
Sorry for my delay in getting back to you. Can you please make sure that you’re on the latest version of both MailChimp for WordPress itself and the MailChimp User Sync add-on?
If you are, are you sure that:
– Delated users are not unsubscribed from your MailChimp list
– Updating a user profile in WordPress doesn’t update the MailChimp subscriber, even though your MailChimp > User Sync settings are configured.
If either of those issues are still happening, do you see anything in your Debug Log on MailChimp for WP > Other?
Thanks!