A multi-tenant installation is similar to a WordPress Multisite install. But, it has a number of advantages over a standard WordPress Multisite:
However, there are disadvantages:
Our implementation of Multi-tenant WordPress provides the following advanced features (in addition to the typical multi-tenant features)
A typical multi-tenant structure will have a single version of WordPress and the plugins and themes folders. It will have its own database and downloads folder as well as any other unique folders required by a plugin or theme.
However, we have decided to implement Multi-tenant slightly differently. We make two changes to the ‘shared files’ model which allows us to offer the advanced features mentioned above:
WPCD Multi-tenant will share a single install of Plugins and Themes among all tenants. But each tenant site will have its own copy of WordPress core files [instead of sharing a single copy among all tenants.]
The reason is simple – to share WP core we would have to modify the core files. Granted, they would be minor modifications in index.php and at the bottom of wp-config.php (the area below the warning “stop editing now”) among others. But we don’t want to burden developers with having to handle those mods or track them as WP rolls out upgrades.
And we gain a couple of advantages including:
Of course, we provide the management tools inside WPCD so that this doesn’t become a burden. You’ll still be using our point-and-click UI to perform the standard Multi-tenant tasks such as
Behind the scenes we’ll be handling all the core files as needed to make everything work.
Still, if you really Really REALLY want to have a single WP installation, we’ve provided all the lifecycle hooks necessary to restructure and dynamically edit files when creating a tenant.
In a typical Multi-tenant structure, the root plugins and themes folders, “wp-content/plugins” and “wp-content/themes“, are symlinked to each site. (A symlink is just a special file that points elsewhere on the file system – similar to Windows shortcuts.)
WPCD, however, symlinks the folders one level lower – the individual plugin and theme folders. The reason is that this allows the admin to add plugins and themes that are unique to a site without impacting other sites. You can mix symlinks and standard files inside the plugins and themes folder for each site.
You might not need this flexibility, in which case you can use our life-cycle hooks to change which folder is symlinked. (In the future we might offer you the option when you create a template as to which level you want the themes & plugins folders to be linked.)
You can learn more about the different approaches to WordPress Multi-tenant using the following resources.
Important Note: The Multi-tenant module is only available as part of a services or upgraded support package. The module has a lot of moving parts so we fully expect that there will be many questions related to how best to apply it to your use-case and goals. Since that kind of in-depth, organization-specific support is not something we can reasonably provide for free in our ALL ACCESS bundle support, the only way to offer this feature is by making it part of a services or upgraded support contract.
However, the code is opensource on GITHUB and experienced ALL ACCESS developers can use it as they see fit. Just keep in mind that this is not an install-and-go feature – it does require at least a smidgen of developer level work (hence the necessity for the services and support package).
See Also