This is the demo plugin from the ChargePanda video "WordPress Plugin License Keys & Auto-Updates from Your Own Server". It's a tiny plugin that adds a bar to the top of the site. Its only job is to show the licensing and update code.
- Activate the key (
phb_activate_license): POSTs the buyer's key and the site's domain tohttps://your-store.com/api/v1/licenses/verify. If the response has"valid": true, the plugin saves the key. - Updates (plugin-update-checker by YahnisElsts, v5): points the checker at
https://your-store.com/api/v1/update-checkand adds four query arguments:license_key,slug,current_versionanddomain. ChargePanda replies with the latest version, the changelog and a signed download link that expires after an hour.