EDITS.WS

Tag: WordPress Multisite

  • How to Share Users and Logins Between Multiple WordPress Sites

    Do you want to share users and logins between multiple WordPress sites?

    Sharing customer, member, or visitor information between multiple sites can improve the user experience, by allowing them to log into multiple sites with the same account. It can also save you a ton of time if you need to add employees, students, or other users to several sites.

    In this article, we will show you how you can share users and logins between multiple WordPress websites.

    Automatically share users and logins between multiple WordPress sites

    Why Share Users and Logins Between Multiple WordPress Sites?

    If you have multiple websites, then you may want to share users and login information between them.

    This can save your visitors time and effort since they only need to complete the user registration form once. For example, you might have a WordPress blog and a website where you sell online courses.

    If someone purchases a course from your blog, then you can automatically add them to the site that has the learning management system (LMS). The user can then log into the LMS and start working on their course, without having to register using their email address, username, and other information.

    If you’re a WordPress development agency or you work on multiple client sites, then you may need to manually create several accounts for each developer, tester, and other staff member. Instead, you can save time by registering each person once and then sharing login information between all the client sites.

    With that in mind, let’s see how you can share users and logins between WordPress websites.

    How to Share Users and Logins Between Multiple WordPress Sites

    The best way to share users and login information is by using Uncanny Automator. It’s the best WordPress automation plugin and helps you create automated workflows that can save you a ton of time and effort.

    When it comes to connecting several sites, many people assume you need to set up a WordPress multisite network. However, it’s often easier to use webhooks. These are bits of code that allow different tools and apps to share information in real time.

    After installing Uncanny Automator, you can use webhooks to share information between WordPress websites, including user accounts and login details.

    To start, you’ll need to install Uncanny Automator on the website where users will create their original account. We’ll call this the ‘source’ website.

    You’ll then need to install Uncanny Automator on every website that should receive data from the source site.

    Finally, you’ll use automation recipes and webhooks to send user information from the source to all the other websites that need this information.

    With that in mind, let’s walk through the steps in more detail.

    Add Uncanny Automator to the Source Website

    The first thing you need to do is install and activate Uncanny Automator on your source website. For more details, see our step-by-step guide on how to install a WordPress plugin.

    Note: There is a free Uncanny Automator plugin that lets you automate many common tasks and comes with 300 automation triggers and actions. However, we’ll be using Uncanny Automator Pro because you need it to use the ‘A user is created’ trigger.

    Upon activation, you’ll be asked to install the free version of Uncanny Automator core. The free plugin has limited features, but it’s used as the base for the Pro version.

    With that done, you need to head over to Automator » Settings and enter your license key.

    The Uncanny Automator automation WordPress plugin

    You can find this information under your account on the Uncanny Automator website.

    After entering the key, click on the ‘Activate License’ button.

    Create a New Automation Recipe

    Upon activation, you’re ready to create automated workflows in WordPress. Uncanny Automator calls these workflows ‘recipes.’

    You’re going to create a recipe that sends information to a webhook, every time a user registers with your WordPress website.

    To get started, simply head to Automator » Add New. Uncanny Automator will now ask whether you want to create a ‘Logged-in’ recipe or an ‘Everyone’ recipe.

    Logged-in recipes can only be triggered by logged-in users, but anyone can trigger ‘Everyone’ recipes. With that being said, select ‘Logged-in’ and then click on ‘Confirm.’

    Creating a new automated workflow in WordPress

    You can now give this recipe a title, by typing into the ‘Title’ field.

    This is just for your reference, so you can use anything you want.

    How to share login information between multiple WordPress websites

    Add Triggers and Actions to the Automated Workflow

    Each recipe in Uncanny Automator has two parts called Triggers and Actions.

    A trigger is any event that starts the automated workflow, such as adding new users and authors to your WordPress blog. Actions are the tasks the recipe will perform, such as sharing information with another website, blog, or online store.

    To start, you’ll need to set the trigger by choosing an integration.

    Uncanny Automator supports many popular WordPress plugins including WPForms, WooCommerce, and OptinMonster. The options you see may vary depending on the plugins you’ve installed.

    To get started, select ‘WordPress’ and then click on ‘A user is created.’

    How to share user information between multiple blogs or websites

    Next, you need to tell Uncanny Automator what it should do when the recipe gets triggered.

    To do this, click the ‘Add action’ button.

    Sharing data between WordPress websites using a webhook

    Uncanny Automator will now show all the different integrations you can use in the action.

    To send data to a webhook, click on ‘Webhooks.’

    How to create user accounts automatically using Uncanny Automator

    This adds a new dropdown menu.

    Here, select ‘Send data to a webhook.’

    Sending data to a WordPress webhook using Uncanny Automator

    You’ll now see a new section where you can set up the webhook.

    For now, scroll to the ‘Body’ section.

    Sharing usernames and emails between multiple websites

    Here, you need to specify the data Uncanny Automator should pass to the receiving WordPress blogs or websites. As an example, we’ll show you how to share the user’s email address, first name, and username. We will not be sharing the user’s password via Uncanny Automator.

    Instead, Uncanny Automator will generate a random temporary password. Later in this guide, we’ll show you how to send an email containing a password reset link, so users can easily create their own password.

    Pro Tip: It is best practice to use a unique password for every account. For more on this topic, please see our ultimate WordPress security guide.

    To go ahead and share the user’s email address, click on the field under ‘Key’ and type in ‘Email.’ You’ll be using the key in your webhook, so make a note of it.

    Retrieving the user's email address from a webhook

    Under ‘Data Type,’ choose ‘Text’ if it isn’t already selected.

    Now, click on the asterisk next to ‘Value.’

    Getting data from a webhook using an automation plugin

    This opens a dropdown with all the different data you can share. For example, you might share the person’s username, first name, and last name.

    To share the user’s email address, click on ‘Common’ and then select ‘User email.’

    Adding dynamic tokens to an automated WordPress workflow

    You’ll typically want to share additional information, such as the user’s first name and last name.

    To share more information, go ahead and click the ‘Add Pair’ button.

    Adding additional key/value pairs to an Uncanny Automator workflow

    Then, type in a key, select the data type, and choose a value from the dropdown menu by following the same process described above.

    For example, in the following image, we’re sharing the email, first name, and username.

    Adding key/value pairs to an automated workflow

    This recipe is almost complete, but you still need to type in the webook’s URL. To get this link, you’ll need to set up Uncanny Automator on the website that will receive the data.

    With that being said, leave the source website open in a background tab, and open a new tab.

    Receive User Login Information using a Webhook

    In the new tab, log into the website, blog, or WooCommerce store that will receive the user information and login data. You can now install and activate the Uncanny Automator plugin by following the same process described above.

    With that done, it’s time to create a recipe that’ll retrieve the data from the webhook, and add it to a new user account.

    To get started, head over to Automator » Add New. In the popup that appears, click on ‘Everyone’ and then select ‘Confirm.’

    How to create a recipe for all users

    You can now type in a title for the automated workflow.

    Once again, this is just for your reference so you can use anything you want.

    How to receive data from a webhook on your website or blog

    Under ‘Integrations,’ select ‘Webhooks.’

    In the dropdown that appears, select ‘Receive data from a webhook.’

    Receiving data from a WordPress webhook

    This adds a new section, with the ‘Webhook URL’ already filled in. In a later step, you’ll add this URL to the source website.

    For now, scroll to the ‘Fields’ section. Here, you’ll need to configure all the information you’ll retrieve from the webhook. These are simply the key/value pairs you created in the first automation recipe.

    Under ‘Key,’ type in the exact key you used for the first piece of information. If you capitalized ‘Email’ earlier, capitalize it here, too.

    Adding keys to a WordPress website or blog

    After that, open the ‘Value Type’ dropdown and choose ‘Text.’

    To configure the next key/value pair, click on ‘Add Pair.’ You can now simply repeat these steps to add all the key/value pairs.

    Mapping keys and values in WordPress

    With that done, click on ‘Save.’

    Set the User Data in Uncanny Automator

    If you’ve been following along, then Uncanny Automator will now share the user’s email address, username, and first name with this new website.

    As we already mentioned, the recipe will create a password at random, so you’ll need to give visitors an easy way to reset their password.

    The easiest way is by sending an email containing a link to your password reset page. You can also include other useful information, such as the person’s username, a link to your website, and your contact information.

    To get started, click on the ‘Add action’ button.

    Adding actions to an automated recipe in Uncanny Automator

    Uncanny Automator will now show all the different integrations you can use.

    Go ahead and click on ‘Emails.’

    How to send an email automatically

    In the dropdown that appears, select ‘Send an email.’

    This adds a new section with some settings already filled in. For example, by default Uncanny Automator will send all messages from your WordPress admin email. It will also use your site name as the ‘From name.’

    Automatically send emails using an Uncanny Automator recipe

    To change any of these settings, simply delete the default value.

    Then, either type in the value you want to use instead, or click the asterisk and choose a token from the dropdown menu. These tokens will be replaced with real information when the recipe runs, so they’re a great way to show personalized content to different users.

    Changing the default email automation settings

    Your next task is getting the user’s email address from the webhook.

    To do this, find the ‘To’ field and then click on its asterisk.

    Adding dynamic tokens to an automated workflow

    Next, click to expand the ‘Common’ section.

    When it appears, click on ‘User email.’

    How to share logins and user accounts between multiple websites

    Uncanny Automator will now show a popup, explaining that you need to specify where the user information will come from.

    In the popup, click on ‘Set user data.’

    Settings user data in an automation workflow

    Now, if you scroll up you’ll see a new ‘Actions will be run on…’ section.

    You want to create a new user account every time the recipe runs, so select ‘New User.’

    Automatically creating a new user

    You now need to map each field to information retrieved from the webhook. Some of these fields are mandatory, such as the username and email address, but others are optional such as the display name.

    To get started, simply find the first field where you want to map some data, and then click on its asterisk button.

    Mapping data to a webhook

    In the dropdown, click to expand the ‘Receive data from a webhook’ section.

    You can now choose the information that you want to show in this field. In our images, we’re retrieving the user’s email address from the webhook.

    Mapping user data to a webhook

    Simply repeat these steps for each field where you want to use the visitor’s information. Just remember to leave the ‘Password’ field empty, so that Uncanny Automator generates a new password at random.

    By default, Uncanny Automator will create each new user as a subscriber. If you want to give them a different role, then open the ‘Role’ dropdown and choose an option from the list.

    Changing the default user role

    For more on this topic, see our beginner’s guide to WordPress user roles and permissions.

    Finally, you can tell Uncanny Automator what to do if there’s already an account for this username or email address. Since you don’t want to create duplicate accounts, click on the ‘Do nothing’ radio button.

    With that done, click on ‘Save.’

    Avoiding duplicate users in WordPress

    Create a Password Reset Email

    You’re now ready to create the email that Uncanny Automator will send to your users.

    To get started, scroll to the ‘Send an email’ section and find the ‘To’ field. You can now click on its asterisk button and select ‘User email’ from the dropdown menu.

    Adding an email address to an automated workflow

    When that is done, scroll to the ‘Subject’ field.

    Here, you can type in any plain text that you want to show in the subject line. You can also personalize the email subject using tokens that Uncanny Automator will replace with genuine user data.

    Creating a personalized subject line using dynamic tokens

    To insert a token, select the asterisk button and then click to expand the ‘Receive data from a webhook’ section.

    You can now choose the token you want to use, such as the person’s username, first name, or last name. In this way, you can create a personalized subject, which may improve your email open rates.

    How to create a personalized email subject

    When you’re happy with the subject line, it’s time to create the email’s body copy.

    Similar to the subject, you can type plain text directly into the editor, or use tokens to create a personalized message. For example, if you’ve retrieved the user’s first name from the webhook, then you can address them by name.

    How to automatically email users on a website, blog, or online store

    You’ll also need to include a password reset link, so the user can create their own password and keep their account safe.

    To include this link, simply click on the asterisk and start typing ‘User reset password URL.’

    Adding a password reset URL to an automated email

    When the right option shows up, click to add it to the message.

    When you’re happy with how the email is set up, click on the ‘Save’ button.

    Automatically send an email using Uncanny Automator

    With that done, you’re ready to make this automated recipe live.

    Simply scroll up and click on the ‘Draft’ toggle so that it shows ‘Live’ instead.

    Publishing an Uncanny Automator recipe

    Connect Multiple WordPress Websites Using a Webhook

    In the ‘Trigger’ section, find the ‘Webhook URL.’ Just be aware you may need to click to expand this section, in order to see the webhook URL.

    Getting a webhook URL

    The final step is adding this URL to the first recipe you created on your source site. To do this, copy the URL and then switch back to the recipe on your original website.

    In this tab, scroll to the ‘Actions’ section and find the empty ‘Webhook URL’ field. You can then go ahead and paste the URL into this field.

    Connecting multiple websites using a webhook

    As soon as that’s done, the source website is ready to share user login data and information.

    To make everything live, just click on the ‘Draft’ toggle so that it shows ‘Live’ instead.

    Sharing data using a webhook

    At this point, you have two live Uncanny Automator recipes on two separate websites.

    Now, every time someone creates an account on the source website, Uncanny Automator will share their information with the second website. The user will also get an email with a password reset link.

    Do you want to share users and login information with more websites?

    Then simply repeat the steps above to set up Uncanny Automator on more websites. In this way, you can easily share user data with an unlimited number of WordPress blogs, websites, and online marketplaces.

    Making Sure Your WordPress Email Is Being Sent Reliably

    Sometimes, users may not receive your emails as expected. This is because many WordPress hosting companies do not have the mail function configured properly.

    To prevent their servers from abuse, many hosting companies even disable the mail function completely. This can be a big problem, as your users won’t receive information about how to create their passwords and access their accounts.

    Luckily, you can fix this easily by using WP Mail SMTP. This plugin lets you send your WordPress emails through a reliable SMTP platform which is configured specifically to send emails like SendLayer, Gmail, and Outlook.

    For more details, please see our guide on how to fix WordPress not sending email.

    We hope this article helped you learn how to automatically share users and logins between multiple WordPress sites. You may also want to check out our guide on how to create a file upload form in WordPress, or see our expert picks for the best membership plugins.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Share Users and Logins Between Multiple WordPress Sites first appeared on WPBeginner.

  • How to Host Multiple Websites on One Server (Beginner’s Guide)

    Do you want to host multiple WordPress websites on a single server?

    You can easily manage multiple domains from a single place by hosting them on one server. Plus, it helps save costs as you won’t need to purchase separate servers for each website.

    In this article, we will show you how to host multiple websites on one server.

    How to host multiple websites on one server

    Why Host Multiple Websites on One Server?

    If you’re planning on expanding your business from one website to more, then it’s a feasible option to host them on a single server.

    That’s because it is easier to manage them from a single place. It can be time-consuming and inconvenient to log in and out of multiple WordPress websites on different servers. If all your websites are on one server, then you can simply switch between them from the same dashboard.

    Hosting multiple sites on a single server will also help save and be more economical for your business.

    Many hosting providers offer dedicated hosting where you have full control over the server and allow you to set up more than 1 website.

    Instead of purchasing individual hosting plans for each site, you can choose a plan that allows multiple WordPress sites on one server. This will also allow you to fully utilize your server resources.

    That said, let’s see how you can host multiple websites on one server.

    Select a Hosting Service and Buy Domains

    Before you can add any website to a server, the first step is to purchase a hosting service and domain names for your websites.

    Choosing a WordPress Hosting Provider

    There are many services to choose from, but we recommend Hostinger. It is a fast-growing web hosting provider that offers different types of hosting options.

    For instance, you can get premium shared hosting, WordPress hosting, VPS hosting, cloud hosting, managed hosting, and more.

    Hostinger website

    In the Hostinger WordPress Starter plan, you can add up to 100 websites, get free email, an SSL certificate, unlimited bandwidth, managed WordPress, and more. You also get 1 free domain name, but you’ll need to purchase other domains.

    The best part is that WPBeginner users can get up to 81% OFF on WordPress hosting plans. Simply click the link below to claim the offer.

    Another advantage of using Hostinger WordPress plans is that WordPress comes pre-installed. You don’t have to manually install WordPress for your websites.

    If you’re looking for alternatives, then you can also use Bluehost or SiteGround to add multiple sites to one server.

    Purchasing Domain Names for Your Website

    After choosing a web hosting platform, the next step is to purchase domain names that you’ll need to host on a server.

    Hostinger lets you buy a new domain or transfer an existing domain. To purchase a domain, simply go to the ‘Domains’ tab from your Hostinger dashboard.

    From here, simply select the ‘Get a new domain’ option.

    Click the get a new domain option

    Next, you can search for a domain name.

    Go ahead and enter a keyword or brand name in the search bar.

    Search your domain name

    From here, you’ll see a list of URL options along with different domain extensions and prices.

    Simply select an option you want and click the ‘Buy domain’ button.

    Buy a domain name

    Next, a popup will open with different billing periods for your domain name.

    Go ahead and choose a billing period.

    Select billing period

    After that, you can complete the checkout process by choosing a payment method and purchasing the domain name.

    You can repeat this process to purchase as many additional domains as you’d like.

    Alternative Method: If you don’t want to buy a domain from Hostinger, then there are many domain registrars that allow you to register a domain name with ease. For instance, you can use Domain.com as it offers top-level extensions, an easy domain registration process, and a bunch of features.

    Adding Multiple WordPress Sites to One Server

    After selecting a hosting provider and buying domain names, you can add multiple sites to one server.

    From your Hostinger dashboard, you can go to the ‘Websites’ tab and click on the + Create or migrate a website option.

    Click create or migrate a website

    Next, Hostinger will walk you through the process of creating a new website on the same server.

    For instance, you can select a website type. This includes an online store, blog, business, portfolio, and other types.

    Select your website type

    After that, you’ll need to select whether you’d like to create or migrate a website.

    If you already have a website on another hosting platform, then you can transfer it to Hostinger. Simply select the ‘Migrate my website’ option and follow the steps.

    For this tutorial, we will select the ‘Create a new website’ option.

    Select create or migrate option

    Next, you can select a platform to build a new website. Hostinger will offer 2 methods, where you can use WordPress with artificial intelligence (AI) or use Hostinger’s website builder with AI to create a site.

    Go ahead and choose the ‘WordPress with AI’ option.

    Select a platform

    From here, you’ll need to enter login details for your account.

    Simply choose a language, select an administrator email, enter a password, and click the ‘Continue’ button.

    Create login details for new website

    In the next step, Hositnger will ask you to add WordPress plugins to your site.

    You can simply select the plugins you want to install and click the ‘Continue’ button.

    Add plugins to your site

    After that, you will need to select a website design.

    Hostinger will load the default theme, but you can click the ‘Browse more templates’ option to view more designs.

    Select a website design

    From here, you can choose a different theme for your website.

    You can also click the ‘Show More’ button at the bottom to load more templates.

    Once you’re done, simply choose a design and click the ‘Select’ button.

    See more website designs

    Next, Hostinger will ask you to enter a brand name and a description of your business.

    It uses ChatGPT to generate a few pieces of content for your website. Once you are done, simply click the ‘Continue’ button.

    Create automated text with AI

    You can also skip this step by entering a name and brief description and then clicking the ‘Skip, I will write content later’ option at the bottom.

    After that, you’ll need to enter a name for your website. Hostinger will show 2 options, you can either select the ‘buy a domain or ‘use an existing domain’ option.

    Enter a name for your site

    If you haven’t purchased a domain name yet, then you can select the ‘Buy a Domain’ option and get one with Hostinger.

    However, if you already have multiple domains on another provider, then you can select the ‘Use an Existing Domain’ option.

    For this tutorial, let’s choose the ‘Use an Existing Domain’ option.

    Enter a domain name

    Next, you will need to enter the domain name and click the ‘Continue’ button.

    A popup window will now open with details for pointing the domain to Hostinger nameservers.

    View existing domain name details

    You can see your domain’s existing nameservers and the required nameservers you’d need to change in the domain registration service. The instructions will vary depending on the domain registrar you’re using.

    If you need help with domain transfer, then Hostinger offers step-by-step guides and documentation. You can also reach out to their support for further assistance.

    Note: You’ll also need to ensure that the domain you’re transferring is not locked by the current registrar and that 60 days have passed since initial registration.

    After noting down the nameservers, you can click the ‘Continue’ button.

    View wordpress installation

    Hostinger will then start to set up your website. It will take a few minutes for the setup to complete.

    The final step is to click the ‘Connect’ button under the Connect Your Domain option after you’ve set nameservers in your domain registrar.

    Click connect your domain

    Once connected, you can view your website from the Hostinger dashboard.

    Simply visit the ‘Websites’ tab to see your newly added site.

    View your newly added site

    You can now repeat these steps and click the ‘+ Create or migrate a website’ option to add as many websites as you want to a single server.

    Bonus: How to Create More Sites Using WordPress Multisite

    A WordPress multisite allows you to run and manage multiple websites from a single WordPress installation. You’ll see multisite networks used by large corporations that need separate domains for each department, universities and schools, news outlets, online businesses, and more.

    There is a slight difference between hosting multiple sites on a single server and a WordPress multisite.

    In a multisite, you have the same parent domain (example.com), and the new sites are subdomains (blog.example.com). They can share plugins, users, and other elements based on your settings.

    On the other hand, hosting multiple sites on a single server means you have different domain names for each website. They’re all completely separate from one another.

    You can easily set up a WordPress multisite using any web hosting service, including Hostinger. Once it’s set up, you’ll be able to add multiple sites to the network and manage them from the same dashboard on one server.

    Multisite network settings

    To learn more, please see our guide on how to install and setup a WordPress multisite network.

    We hope this article helped you learn how to host multiple websites on one server. You may also want to see our guide on how much does it cost to build a WordPress website and the best GoDaddy alternatives.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Host Multiple Websites on One Server (Beginner’s Guide) first appeared on WPBeginner.

  • Exploring Multi-tenancy: Revolutionizing WordPress Management

    WordPress multisite, creating a SaaS out of a plugin, running an agency more efficiently… Will multitenancy be the solution of the future?

    The post “Exploring Multi-tenancy: Revolutionizing WordPress Management” first appeared on WP Mayor.