Title: Sync user_id
Last modified: September 13, 2018

---

# Sync user_id

 *  Resolved [Dennis Kron](https://wordpress.org/support/users/ahjdp/)
 * (@ahjdp)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/sync-user_id/)
 * I have managed to sync additional user meta data, but unable to sync the user_id
   field.
 * Does anyone have success with that? Alternatively another solution.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/sync-user_id/#post-10692126)
 * You could try this (untested)
 * Replace mailchimp_field_for_wp_user_id with the correct merge tag from MailChimp.
 *     ```
       add_filter( 'mailchimp_sync_subscriber_data', function( $subscriber, $user ) {
           $subscriber->merge_fields[ 'mailchimp_field_for_wp_user_id' ] = $user->ID;
           return $subscriber;
       }, 10, 2 );
       ```
   
 * Hope that helps. If you have any questions, please let us know!

Viewing 1 replies (of 1 total)

The topic ‘Sync user_id’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailchimp-sync_cfeefa.svg)
 * [MC4WP: Mailchimp User Sync](https://wordpress.org/plugins/mailchimp-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-sync/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/sync-user_id/#post-10692126)
 * Status: resolved