How to Connect Multiple WordPress Sites Together (3 Ways)
انتشار: تیر 28، 1401
بروزرسانی: 26 خرداد 1404

How to Connect Multiple WordPress Sites Together (3 Ways)

Next, the plugin will show the webbook URL. You can note down the URL in a text file, as we’ll need it later on to finish the recipe on your WooCommerce store.

After that, you will have to enter a name for your recipe and select a trigger integration for your recipe.

Next, you can enter a name for your recipe and select ‘WooCommerce’ as the integration. The name is for your reference only, and your users won’t see it.

Enter a name and select WooCommerce as integration

We’ll show you how to connect both websites using Uncanny Automator. Our goal is to automatically register customers on your membership website when they buy a course from your store.

Don’t worry, you won’t need to know how to code in order to use it. We’ll walk you through all the steps.

For example, let’s you want to create an eCommerce store but keep it away from your main domain. In this case, you can create a subdomain for your online store, and your website will look like this:

You’ll need to repeat the activation steps for both WordPress websites.

Note: Before you start, make sure that you’ve added a product to your WooCommerce store and created different membership levels on your membership site.

In our case, we’ll select MemberPress since we used it to set up the membership site.

Choose action integration

After that, Uncanny Automator will ask you to select a product for your recipe.

Since we want our customers to subscribe to a membership automatically, we’ll select the ‘Add the user to a membership’ option.

Add the user as a member

Now, under the ‘What to do if the user already exists’ option, simply choose ‘Do nothing’ and click the Save button.

Select do nothing and save
Go ahead and select ‘Everyone’ as the recipe type and click the ‘Confirm’ button.

Select everyone as recipe

Let’s say you have multiple websites like a WordPress blog and an online course website. If someone purchases a course from your blog, then you’d have to manually enroll them on to your site that has the learning management system (LMS).

Having multiple websites is an advantage for your business as you easily segment products and services for different customers and keep your main website secure. However, connecting each site and making them work together can be tricky.

Then, you’ll need to select a trigger for your recipe.

Another way you can connect multiple WordPress websites is by creating a subdomain.

A form will now appear where you can set the user data. You can leave the first name and last name fields blank.

In the next step, you can select an action for your chosen integration.

Simply select the ‘Send data to a webhook’ option.

Choose send data to a webhook
After that, you’ll need to go to the Automator » Settings page from your WordPress dashboard and enter your license key. You can find the key in the Uncanny Automator account area.

Enter Uncanny Automator license key

Next, you’ll need to create a recipe on your WooCommerce store when customers purchase your product. ‘Recipes’ are automations.

Subdomains are additional parts of your primary domain name and help you organize different sections of your WordPress website. You can use them to separate other functions from your main website.

There’s also an option to send test data to see if your connection is set up correctly.

Creating a Recipe for Purchasing a Product on Your WooCommerce Store

To edit your WordPress footer and add links to another website, please see our guide on how to edit the footer in WordPress.

Simply click the ‘New User’ option.

Select new or existing user

In this article, we’ll show you how to connect multiple WordPress sites together.

How to connect multiple WordPress sites together

Why Connect Multiple WordPress Websites Together?

After that, you’ll be asked to select a recipe type. Logged-in recipes are triggered by logged-in users only, while ‘Everyone’ recipes can be triggered by all users.

Select logged in users

You can also add a link to your website’s footer.

In the next step, you’ll need to select a trigger for your integration.

Under the Body section, you can click the asterisk (*) sign for the ‘Key’ field and select ‘Billing email’ as the option. Similarly, you can also select ‘Billing email’ for the Value field.

Add additional data for WooCommerce recipe

Next, you can select the membership plan you want the WooCommerce customer to subscribe to by clicking the Membership dropdown menu.

You can select ‘pays for’ as the condition and click the ‘Save’ button.

Choose a trigger condition

After that, scroll down to the Fields section. Now enter ‘Email’ under the Key field and select ‘Email’ for the Value type.

Enter field details and cope the webhook link

Besides that, you’ll see more fields for subtotal, tax amount, tax rate, status, gateway, and more. You can leave them to the default setting.

Select a membership plan

After entering the key, don’t forget to click the ‘Activate License’ button.

We hope this article helped you learn how to connect multiple WordPress sites together. You can also see our guide on how to start a WordPress podcast and the best WordPress plugins.

Next, you’ll need to choose between an Existing User or a New User.

Next, you’ll be asked to select the trigger condition.

You can easily create a subdomain using your WordPress hosting account. For more details, you can see our explanation about subdomains and how to create one.

Next, you’ll need to enter your webhook details.

Enter webhook details

Don’t forget to click the ‘Save’ button after selecting a product.

Next, go ahead and click the asterisk icon (*) for the Email field. From the dropdown options, select ‘Field #1 Email’ under Receive data from a webhook.

Click the asterisk sign and select email field

Many people think of creating a WordPress multisite network when connecting numerous sites together. However, you don’t need to run a multisite network to connect each website together. In fact, that’s usually not the best solution.

Then, you can see our guide on how to install WordPress to create another WordPress site on the subdomain.

However please keep in mind that these websites will not be in sync automatically, and you will have to manually update both of them.

This could take a lot of time, or cost you a lot if you need to hire help to get the job done.

Creating a Webhook on Your Membership Website

To complete the recipe on your WooCommerce store and fill in the webhook details, you need to create a webhook on your membership website.

For example, on WPBeginner, you’ll see that we’ve linked to websites that are part of the WPBeginner family of products along with some site links.

Connect sites in footer

On the other hand, you can automate different tasks and save time by connecting these websites together. When a customer purchases the course, they’re automatically registered and enrolled on a separate membership site. This is good practice to keep your main WordPress site secure.

At WPBeginner, we also use a subdomain for our video content. You can visit https://videos.wpbeginner.com/ and get access to numerous video tutorials on WordPress.

Video subdomain preview
One common way to do this is by adding a custom link to your main navigation menu.

Don’t forget to click the ‘Save’ button when you’re done.

If you want, there are more actions you can add to the recipe, like allowing WordPress to send a confirmation email or registering the user to a Zoom webinar.

Simply click the ‘Webhooks’ as the integration.

Choose webhooks as trigger integration

Don’t forget to click the ‘Save’ button.

Simply select the ‘A user completes, pays for, lands on a thank you page for an order with a product’ as the trigger.

Select a trigger for your recipe

Go ahead and click the ‘Set user data’ button.

Set user data for MemberPress
Upon activation, you’ll be asked to install the Uncanny Automator free plugin. The lite version offers limited features and is used as a base for the pro version.

Go ahead and select the ‘Receive data from a webhook’ as the trigger.

Select receive data from a webhook

Go ahead and select ‘Webhooks’ as the integration.

Select Webhooks as integration

Next, you can scroll down and keep the Request Method and Data format to the default setting.

To create the action, you’ll need to select an integration.

Whenever a customer purchases your selected WooCommerce product, they’ll be automatically subscribed to a membership plan on your membership website.

Keep this tab open for now.

https://store.yourexamplewebsite.com

After that, you can choose an action for your selected integration.

For this tutorial, let’s consider a situation where you have a WooCommerce store and a membership website.

Next, you’ll need to install the Uncanny Automator plugin on both of your websites. For more details, please see our guide on how to install a WordPress plugin.

First, you’ll want to open your membership site in a new tab. Then head over to Automator » Add New from your WordPress admin panel on your membership site.

Next, go ahead and publish your recipe by clicking the Draft toggle and changing it to Live.

Publish your WooCommerce recipe

Now you’ll need to choose an ‘Action’ for your recipe.

Click the add action button

To start, you can head over to Automator » Add New from your WordPress admin panel.

A popup will now appear showing that the action will require WordPress user data.

Now that your recipe is active on the membership website, it’s time to finish up the recipe on your WooCommerce store.

Next, you can now go ahead and publish your recipe. Simply click the ‘Draft’ toggle on the right side of the page and change it to ‘Live.’

Publish your recipe

You can use this same method to set up similar automations to connect multiple WordPress sites together.

Method 2: Create a Subdomain to Connect WordPress Websites

You can repeat this step for the Username field as well. As for other fields, you can leave them blank.

Next, you can add an action to your recipe by clicking the ‘Add action’ button.

Click the add action button

You can easily send the customer’s registration data to your membership website using a webhook. A webhook is a bit of code that allows different tools and apps to provide information to other apps in real-time.

If you liked this article, then please subscribe to our\xa0YouTube Channel\xa0for WordPress video tutorials. You can also find us on\xa0Twitter\xa0and Facebook.



منبع

Similarly, you can create a subdomain for different locations like uk.yourexamplesite.com or fr.yourexamplesite.com.

The best way to connect two websites and make them talk to each other is by using the Uncanny Automator plugin. It’s the best WordPress automation plugin and helps you create automated workflows on your website.

That’s it!

You can also connect multiple WordPress sites together by linking them together. The links will help to boost your WordPress SEO by passing authority (link juice) to each domain.

First, go back to your WooCommerce website and open the recipe we created earlier. Next, enter the webhook link we copied in a text file (when creating a recipe on the membership site) under the ‘URL’ field.

Enter the copied webhook url

You can think of the plugin as Zapier for WordPress websites. With Uncanny Automator, you can easily create a connection between multiple websites.

The Uncanny Automation WordPress plugin

There will be different integrations you can choose for your action. Simply select the membership plugin you used to create the membership site.

Do you want to connect two or more WordPress websites together?

Go ahead and select the digital product that’s on your WooCommerce store. For example, we’ll choose the WordPress Course: Ultimate Growth Hacking as the product for this tutorial.

Select a product for recipe
We’ll show you 3 simple ways of making different websites work together. You can click the link below to jump ahead to any section you’re interested in:

Method 1: Connect Multiple WordPress Sites Using a Plugin

Go ahead and select the ‘Logged-in users’ as the recipe type, since your customers will be creating an account and logging in to make a purchase. Then click the ‘Confirm’ button.

When you’re done, don’t forget to click the ‘Save’ button.

Finishing Your Purchase Recipe in WooCommerce