Subdomain Authentication
With the Domain Mapping System plugin, you can now let users login to subdomains and navigate protected pages.
In order to allow website visitors to login to user accounts on mapped subdomains of your website, you can simply enable the checkbox for Subdomain Authentication:

This will allow users to login to Subdomains of your website and remain only logged in to that subdomain. They are only able to access protected login pages that are mapped to the specified subdomain.
Selective Subdomain Authentication
The dropdown checkbox allows you to selectively activate Subdomain Authentication only on specific subdomains:

WooCommerce Subdomain Authentication
To allow login to protected WooCommerce areas, such as the Account area, there is another checkbox to activate for that. These can be activated independently from each other, if you only want to allow WooCommerce authentication, for example.

Multisite Requirements
If you are trying to configure Subdomain Authentication on multisite, you must update the sunrise.php file mentioned in our multisite integration docs to change this string from this:
if ( ! is_multisite() || $is_admin ) {
return $site;
}
To this:
if ( ! is_multisite() || ! $is_admin ) {
return $site;
}
Last updated