8.5 Sync contact data from CRM to WP

Estimated reading: 2 minutes 50 views

 

 

Let’s see how contact data can be synced. Let’s go to the CRM & add tags for a specific user. This tag should be added/updated immediately in our WordPress environment. There are 2 ways to make it work.

1. By a shortcode: we have a shortcode [lcw_contact_sync], and if you add this shortcode to a page and when a contact visits that page, the contact data will be updated by visiting that page.

2. By automation: This is the recommended way. create a workflow with the following trigger & webhook:

the trigger: Set the trigger to “Contact Changed” and add filters based on when you want the data to be sent to your WordPress site — for example, when tags or custom fields are updated.
Automatically Update WP user data from Highlevel

The webhook: You need to set up a webhook that sends contact changes to your website.
In this webhook, set the METHOD to POST, the URL to your website URL
(you can directly paste your website URL, but we recommend creating a custom value and using that instead),
and add two CUSTOM DATA parameters with the following keys:

  1. lcw_contact_update with the value 1
  2. lcw_create_wp_user with the value 1
    (this is needed if someone exists in the CRM but isn’t yet registered in WordPress).
    This will create a new user in WordPress with the following data:

    1. username: Email Address
    2. email: Email Address
    3. password: CRM contact ID

Screenshot: the workflow webhook.

Automatically Update WP user data from Highlevel

We recommend using the automation method to sync your contact data, as it works efficiently and requires no manual intervention once set up.

The shortcode method can be used in specific cases where you need to sync a contact manually. However, note that each page load will send an API request to your CRM, so use this method sparingly.

2 Comments

  1. I’ve tried both the method via a GHL workflow, lcw_contact_update and lcw_create_wp_user.
    lcw_create_wp_user method is working fine and creates the user in WP. However, the lcw_contact_update is not working and does not update the contact (tags) in WP in realtime.

    • Hi @Hemant,
      Currently, this requires the WordPress user to visit the website to sync the data. We’re working to make it available in real time without requiring a page visit by the end of this month. We’ll inform you once it’s implemented.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

8.5 Sync contact data from CRM to WP

Or copy link

CONTENTS