• 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

    (@lapzor)

    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.