skip to Main Content

Connect Multiple WordPress Websites Together

Having more than one website to support your business goals has several advantages. One benefit of using multiple sites is that you can better group or segment your product and services based on your customer demands.

Here’s an example. Let’s say that we have an online learning and development company. Our company designs, develops, runs, and sells online courses. That means we’ll need an online store to sell our courses and a learning management system (LMS) to run them.

We prefer to have two sites: one site for our store and the other for our LMS. Furthermore, we like having two websites to avoid clumping everything onto one monolithic site. Having separate sites allows us to:

  • Provide personalized service to our customers based on their interaction with us.
  • Delegate specialized operations teams to efficiently support each function.
  • Handle the different traffic loads that our sites must support.
  • Avoid a single point of failure to help maintain our business continuity.

Given these requirements, we’ll set up shop.bigcompany.com to host our online store. And, lms.bigcompany.com will be our LMS site for running our courses, group forums, and webinar events.

Let’s set the stage with a real-world scenario of how these two sites would work together.

The scenario: taking an online course

Imagine our company has a course called “How to make a website”. We’ll use our shop.bigcompany.com to market and sell the course. Then, our lms.bigcompany.com is where registered participants will attend course webinars, take the course lessons, and participate in class discussions.

Here’s our registration process:

  1. A new student creates a store account and buys the “How to make a website” course on shop.bigcompany.com.
  2. A course admin gets notified.
  3. The course admin creates an account on lms.bigcompany.com for the new student.
  4. The admin enrolls the student in the course on lms.bigcompany.com.
  5. The admin registers the student for the course’s orientation webinar.
  6. The admin subscribes the student to the course’s group forum.
  7. The admin emails the student all registration details and instructions for logging in.

You probably noticed that there are a few manual steps involved.

The challenges of multiple sites

We touched on the advantages of having multiple sites earlier. Unfortunately, making these sites work together can introduce additional overhead like those manual steps we just listed.

Wouldn’t it be nice if all a student needed to do is purchase the course and make sure they set up an account on our shop and LMS sites? Then, everything else could be done automatically?

Drum roll. Enter the Uncanny Automator.

Why Uncanny Automator?

If our company used the Uncanny Automator Pro plugin, then our seven steps above can be reduced to these two:

  1. The student buys the “How to make a website” course on shop.bigcompany.com.
  2. Uncanny Automator sees this purchase and kicks off a process on lms.bigcompany.com that creates the student’s user account, enrolls the student in the course, registers the student to the welcome webinar, subscribes the student to the course’s group forum, and emails the login details to the student.

Right now, Automator needs an account to exist on both sites to make a purchase. Soon we’ll have an anonymous trigger (as part of a “Recipe for Everyone”) to automate the process. So, logging in to make a purchase won’t be required in the future.

Are you finding all of this hard to believe? All right then, let’s see how this would work.

In this article, we’ll show you how to create a site-to-site recipe with Uncanny Automator Pro. When we’re done, you’ll see how you can automate transactions between your company’s eCommerce and LMS sites!

Here’s what we’ll cover:

  1. Creating a virtual product in WooCommerce.
  2. Creating an Uncanny Automator recipe on our shop site to send data to a webhook on our LMS site.
  3. Creating an Uncanny Automator recipe with a webhook trigger. With a webhook trigger, this recipe can automatically do: a course enrollment in LearnDash, a webinar registration in The Events Calendar, a subscription to BuddyPress, and an email confirmation.

Tutorial

1. Create an online course product on shop.bigcompany.com

We’ll be using WooCommerce for this tutorial. But, this same technique applies to other eCommerce platforms such as Easy Digital Downloads.

Enable account creation

Log into your /wp-admin/ dashboard on shop.bigcompany.com.

From your /wp-admin/ dashboard, navigate to WooCommerce > Settings.

Click on the Accounts & Privacy tab. Under Account creation, check Allow customers to create an account during checkout. This should be the only setting checked. Leave all other settings unchecked. You can leave the defaults for the Privacy policy and Personal data retention sections.

WooCommerce privacy settings

Add a product

From your /wp-admin/ dashboard, navigate to Products > Add New.
Name the product, “How to make a website”. Select Simple product for Product data and click the Virtual checkbox.
Add a price in the Regular price field in the General tab. Click Publish.

WooCommerce settings for Automator site-to-site connections

2. Create a recipe for purchasing the course on shop.bigcompany.com

Make the Uncanny Automator Recipe

From your /wp-admin/ dashboard, navigate to Automator > Add New.
When the Select a recipe type popup appears, select Logged-in. Click Confirm.

Name your recipe Course purchase: How to make a website. Select WooCommerce for the integration.

woocommerce integration

For the trigger, select A user completes, pays for or lands on a thank you page for an order with a product.

WooCommerce trigger

For the trigger condition, choose pays for.

WooCommerce trigger

For the product, choose our How to make a website course that we made earlier. Keep the number of User purchases set to 1 times. Click Save.

WooCommerce trigger

We have a trigger. Let’s create an action for it.

In the Actions tab, click on Add action and select Webhooks from the menu of available integrations. The webhooks action will send the student’s registration data to our lms.bigcompany.com site via a webhook.

webhooks integration

In the dropdown, select Send data to webhook. The webhook form appears.

WordPress webhook selected

Before we can complete the form, we’ll need to create the actual webhook on lms.bigcompany.com. Let’s do that now.

3. Create a webhook to do the registration on lms.bigcompany.com

If you haven’t noticed yet, the webhook we’re about to create is where the magic happens. Because Uncanny Automator supports webhooks, the websites in our tutorial can send and receive data to and from any other webhook enabled site or service.

This includes systems such as IFTTT, Integromat, or another site running Uncanny Automator. Just think of the possibilities this gives us!

Using a webook trigger does require the use of Uncanny Automator Pro.

Create the webhook recipe

Log into your /wp-admin/ dashboard on lms.bigcompany.com.

From your /wp-admin/ dashboard, navigate to Automator > Add New.

Uncanny Automator v2.1.4 add new recipe

Just as we did with the recipe on shop.bigcompany.com, select Everyone for the recipe type and Confirm.

Create the trigger

Name your recipe Webhook: How to make a website and select Webhooks for the integration.

In the Fields section, enter “email” for the Key and select Email for the Value type. Click Save.

Automator webhook trigger

Note: Copy the Webhook URL and paste it into a text file for safekeeping. We’ll need it later to finish the recipe we started on shop.bigcompany.com.

Onto our actions. If you recall, this recipe needs to perform the following five actions:

  1. Create a new student user account.
  2. Enroll the student in the course.
  3. Register the student for the orientation webinar.
  4. Subscribe the student to the group forum.
  5. Send the confirmation email.

Create the actions

In Automator 3.1 and later, we choose which actions we want to run before mapping the actions to a user. let’s start with adding the user to a course. In the Actions panel, click Add action and select LearnDash from the menu of available integrations.

learndash integration

Select Enroll user in a course. Since this action requires a user to enroll into the course, Automator prompts us to set user data. Click Set user data.

Enroll user in a LearnDash course

Next, select New User.

New user selection action for Uncanny Automator recipe

You should now see a form displaying the standard WordPress user account fields: first name, last name, email, username, display name, password, and roles. We’re only going to fill in the required fields. We’ll grab the email from our webhook data and we’ll want the username to be the same as the email. Let’s do the email together.

Leave the First name and Last name fields blank. Click on the asterisk icon (*) on the right-hand side of the Email field. This is the token selector. Tokens act like handles to the data in the form. Tokens will get filled in later with actual values when the form is submitted.

Uncanny Automator field token selector

Again, for the Email field for our new user, we want the Email token from our webhook.

Select webhook. From the dropdown menu, click on Field #1 email. You’ll see the email token appear in the text field above.

Set new user email

Follow the same steps for the Username field.

Leave the Display name blank.

For the password, we want the user to reset it before logging in for the first time. We’ll email them a reset link in a bit. Leave the Password field blank too.

Keep the default Subscriber selected for the Roles field. Click Do nothing for the What to do if the user already exists field if you don’t want to map the recipe to an existing user, or choose Select existing user to map the actions to the existing user and enroll them in the course. The latter is more common.

Click Save.

Set new user data completed

Now that the actions have been mapped to a WordPress user, we can continue on with adding the user to a LearnDash course. In that action, click the a course button to choose a course.

Select the appropriate course.

Learndash action course

Click Save. Then, click Add another action.

For BuddyPress and Events Calendar, follow the same flow to add the user to the group forum and to create a webinar RSVP. These actions should like this when you’re done.

BuddyPress Events Calendar actions

The final action is sending a confirmation email. In the Actions panel, click Add another action and select Emails.

emails integration

In the dropdown, select Send an email. Keep the From and From name fields set to their default values. Add the User email token; click on Asterisk then Common and select User email.

emails actions to field email token

Add your Subject. For the Body, we get a text editor complete with a token selector icon (*) to work with. That means we can pull in data from WordPress to compose a personalized message. In my example below, I’m inserting the User first name in the salutation. Then, I provide a reset password link also courtesy of WordPress.

Email body completed

Activate the recipe

We are done with our actions. Let’s activate everything before heading back to finish our recipe on shop.bigcompany.com.

We’ll need to click the Draft toggle button on the right side of the page. You can find it in the Recipe details section. It will turn blue when Live.

Automator webhook recipe completed

4. Finish the purchase course recipe on shop.bigcompany.com

Go back to your “Course purchase: How to make a website” recipe on shop.bigcompany.com. Find the URL field under the Automator webhook action we created earlier.

Remember that Webhook URL we copied and pasted for safekeeping? We can finally copy and paste it into the URL field.

Keep Post for the Request method.

Under Fields, enter email for the Key. For the Value, click on the token selector (*) and search for Billing email. Select Billing email.

Automator recipe send data to a webhook

Click Save. Switch the Draft toggle on the right side of the page to Live.

5. Putting it all together

As a final test, try running through the following steps:

  1. Let’s go to our shop page. E.g., shop.bigcompany.com/shop.
  2. We’ll add “How to make a website” to our cart.
  3. We’ll view our cart, then proceed to checkout.
  4. We’ll fill in all the required fields.
  5. Let’s place our order.

We’re done. No lie!

If you used a real email address, you can verify you got your confirmation email and accept the webinar invite. Then, you can log into lms.bigcompany.com to introduce yourself on the forum and start taking your course. Congrats!

The Automator advantage

If you’re already connecting multiple WordPress sites, you might ask, “Why not use Zapier or Integromat?”

Here are three major advantages of using Uncanny Automator over other integrations:

  • Data security. Your data never goes through a third-party service. Your data is more secure with Automator.
  • Cost savings. There is no cost per transaction. Say goodbye to complicated pricing tables, hidden fees, and service cut-offs. Create as many recipes as you want and run them as many times as you need without any charges.
  • Flexible and scalable. Uncanny Automator is the only plugin that can integrate recipes with an Events Calendar event, a BuddyPress group, and LearnDash. Automator supports connections to dozens of other plugins and thousands of apps!

Conclusion

We looked at a real-world scenario of how a company leverages multiple websites to meet business demands. We realized that exchanging data between sites could be a major problem if the process isn’t automated.

Then, we discussed how the Uncanny Automator Pro plugin can provide an elegant and seamless way for multiple sites to work together.

Lastly, we guided you step-by-step on how to:

  • Create an Automator recipe from one site that sends data to a webhook on another site.
  • Create a webhook using an Automator recipe to receive data from another site.
  • Integrate three completely different plugins to provide a comprehensive yet simple student registration process triggered by a remote website no less.

For demonstration purposes, our tutorial covered only one possible combination of connecting WordPress sites. The real power of Automator is that you can connect any number and any type of site.

If you need to connect multiple WordPress sites together for your business, it’s time to give Uncanny Automator a try.

Mark slung code for Fortune 500 companies in a previous life. Now he's a freelance photographer, writer, and web developer based in Bali, Indonesia.

This Post Has 4 Comments

  1. I love the possibility that this combination creates. I recently split my WooCommerce store from my Learndash LMS and found that using Uncanny Automator worked a treat. I didn’t know that I could send an automatic email to reset the password on the LMS site so I am going to set that up now.

    Thanks for a great plugin and for the fast support your company provides when needed. If you are looking to set up a similar scenario I absolutely recommend Uncanny Automator for this process.

  2. Does it support Woocommerce Subscription on one website and access to the course based on that subscription on the other website?

    1. Hi Rina,

      Yes, you can have subscriptions on one site grant access to a course on another site. Please note that you will need multiple recipes, as you’ll want to assign access on purchase AND revoke access on expiration/cancellation/etc. Have a look at the triggers over at https://automatorplugin.com/integration/woocommerce/ that are subscription related; you’ll need a recipe for each condition on both websites.

  3. I’ve just downloaded and in the process of setting it up. It seems there a couple of changes to the software since this documentation was created.

    I can’t find a way to add the Value as per the example above ‘Purchases _____ 1 time isn’t a clickable field, only the individual components. ie – ‘{{142:WCPURCHPROD:WOOPRODUCT_ID}} {{142:WCPURCHPROD:NUMTIMES}}’

    “Under Fields, enter email for the Key and User purchases How to make a website 1 times for the Value.”

Leave a Reply

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

Back To Top