Skip to content

Instantly share code, notes, and snippets.

View rkbwp's full-sized avatar

Rizwan Ahmed rkbwp

View GitHub Profile
@rkbwp
rkbwp / README.md
Created October 21, 2026 23:37
Panda Hello Bar: license keys + auto-updates from your own ChargePanda store

Panda Hello Bar: license keys + auto-updates from your own ChargePanda store

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.

What the code does

  1. Activate the key (phb_activate_license): POSTs the buyer's key and the site's domain to https://your-store.com/api/v1/licenses/verify. If the response has "valid": true, the plugin saves the key.
  2. Updates (plugin-update-checker by YahnisElsts, v5): points the checker at https://your-store.com/api/v1/update-check and adds four query arguments: license_key, slug, current_version and domain. ChargePanda replies with the latest version, the changelog and a signed download link that expires after an hour.

Setup