Menu

Licensing a WordPress Plugin: Sites, Staging Copies and Gated Updates
📰

Licensing a WordPress Plugin: Sites, Staging Copies and Gated Updates

DEV Community: php·PermitCore·about 22 hours ago
#oFZ1LZAj
#devto#dev#license#wordpress#example
Reading 0:00
15s threshold

Originally published on the PermitCore blog .

A WordPress plugin license key needs a policy for sites, staging copies and updates. A customer can clone a database, move from HTTP to HTTPS or restore a backup without buying a new product. Decide which changes represent a new licensed installation before writing the activation call. Keep published pages available while the licensing check runs.

This guide uses PermitCore PHP SDK 2.1.1 and a single-site plugin example. It also explains the decisions a theme developer needs to make. The code is an integration example you package and test yourself; it is not an official WordPress plugin or updater library. Start with issuing your first license if you do not yet have a product and a test key.

Why the site becomes the device identifier

PermitCore's existing activation endpoint accepts a deviceId . Here, the plugin chooses that value from the site's normalized hostname.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.