• Resolved pablog

    (@pablogutierrez)


    Hi,

    Is it possible to sync only users that DOESN’T CONTAIN a certain text in a field (example: only sync users that don’t contain “@hotmail.com” in email address).

    We see the following code in the FAQ:

    add_filter( ‘mailchimp_sync_should_sync_user’, function( $subscribe, $user ) {

    // check for custom user field
    if( $user->subscribe_me ) {
    return true;
    }

    // do not subscribe otherwise
    return false;
    });

    How can we modify this code for our case?

    Thanks a lot.

    • This topic was modified 7 years, 10 months ago by pablog.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sync Based On A Field That DOESN’T CONTAIN A Certain Text’ is closed to new replies.