• Resolved Nickness

    (@nickness)


    Hello,

    I would like to use your plugin to provide support through Intercom within different WordPress Install. I would like users from these different installs to be added to one single Intercom app.

    The problem I face is that users that shares the same id (wordpress id from different install) conflicted when they are synced into Intercom.

    Any ideas of how I can solved that?

    Regards

    https://wordpress.org/plugins/intercom-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nickness

    (@nickness)

    Hi,

    I was able to fix my issue by generating an uuid by user using this code :

    $intercom_user_id = get_user_meta( $current_user->ID, ‘ll_intercom_id’, true );
    if ( empty ($intercom_user_id) ) {
    $intercom_user_id = uniqid();
    add_user_meta( $current_user->ID, ‘ll_intercom_id’, $intercom_user_id, true );
    }

    Then I use the $intercom_user_id to comptute the hash and for the Intercom settings.

    WARNING : if you have already synchronized users within Intercom the code above will not attach further users logins to the previously synced users but will create new Intercom users instead as user_id will not be the wordpress user id anymore but the new uuid…

    Regards

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    Glad you found a way to resolve it – having users from multiple sites in one Intercom app is certainly not something I imagined!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple WordPress Install to single Intercom App’ is closed to new replies.