How do I add premium license keys to tenants?

Premium license keys can be activated on tenants in a few different ways, depending on how the plugin licenses their software.

Premium license keys can be activated on tenants in a few different ways, depending on how the plugin licenses their software:

  1. Separate Premium Plugin: If a plugin offers its premium plan as a separate plugin, simply having the plugin in the version is sufficient. Examples include Rank Math or All in One Migration.
  2. Generic License Key: When a plugin uses a generic license key for their unlimited or seated license plan, this can be solved by making sure the license keys are in the Version before making a snapshot. This ensures the license keys are present in the Tenant database when it is provisioned.
  3. Seated License Key with Different Activation Keys: If a plugin has a seated license key with a number of seats, where each seat has a different activation key, custom code may be needed. This is usually done with a must-use plugin that runs PHP in combination with lifecycle hooks.

Additionally, users can automatically load in license keys into tenants using PHP Constants. For more detailed guidance, you can refer to an article on the topic: Tenant License Key Activation