Support » Plugin: MailChimp User Sync » Syncing with additional source code

  • Resolved alandc12


    Hi there,

    My site subscribers can subscribe to different levels of the site, I want each level to be subscribed to the same list, yet to contain some “SOURCE” data so that I may assign them to a specific segment of my list, for this i want to add some code. I need to set a hidden “SOURCE” code to the html form, is this possible?


Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten


    HI Alan,

    Sorry for the late reply but we’ve definitely not forgotten about this plugin.

    We just pushed out version 1.0 of the plugin which include some features and a filter that lets you modify the data that is sent to MailChimp. You can basically use it to send anything you want to MailChimp.

    add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
        $data['WEBSITE'] = $user->user_url;
        $data['SOURCE'] = get_user_meta( $user->ID, 'source', true );
        return $data;
    }, 10, 2 );

    I hope that helps you in what you’re trying to accomplish! If not, let me know. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Syncing with additional source code’ is closed to new replies.