A WooCommerce license key is a unique code your store issues when someone buys a digital product such as a plugin, theme, desktop app or game. WooCommerce cannot create keys on its own, so a license plugin generates the key (or takes one from a stock you imported), adds it to the order email and the customer’s My Account page, and lets your software check it. When the customer enters the key, your product asks your store whether the key is valid, not expired and still under its activation limit. If yes, it unlocks features or updates. If not, it stays locked.
This blog explains how WooCommerce license keys work step by step, the license types you can sell, the problems they solve, and the plugins that add them. If you want to see the screens first, open the License Manager Live Demo.
Sell license keys from your own WooCommerce store
Generate or import keys, deliver them on the order, limit activations per key, and show everything in My Account.
Live DemoView PricingWhat are WooCommerce license keys?
A WooCommerce license key is a string such as APP-7KQ2-M9XD-4RTA that is tied to one order, one product and one customer. It works like a receipt your software can read. The key proves the purchase, and the license record behind it says how many sites or devices it may run on and until when.
Stores use WooCommerce license keys for:
- WordPress plugins and themes that need updates and support for paying users only
- Desktop software, Electron apps and games sold from your own site
- Pre-generated keys you buy or create elsewhere, for example game keys or vouchers
- Software sold on yearly plans or WooCommerce Subscriptions
The purpose is simple: confirm the buyer, stop one purchase from running everywhere, and connect updates and renewals to a real order.
What is stored with each license key?
| Field | What it means |
|---|---|
| Key | The code itself, stored encrypted with a hash for lookups |
| Order, product, customer | Which purchase the key belongs to |
| Status | Sold, Delivered, Active, Inactive or Disabled |
| Expires at / valid for | A fixed end date, or a number of days from delivery |
| Activations used / max | How many sites or devices use the key out of the limit |
License keys vs plain downloadable products
A normal WooCommerce downloadable product gives the buyer a file link, and that is the end of it. Anyone with the file can install it anywhere, and you have no way to tell a paying site from a copied one. A licensed product adds a record you control after the sale. You can see where the key is active, free a seat when a customer moves to a new site, stop updates when a yearly key runs out, and switch a key off after a refund. That control is the whole reason stores sell software with license keys instead of a bare download.
How do WooCommerce license keys work? (WooCommerce software license flow)
Every license key system on WooCommerce follows the same five steps. The names below match the screens in License Manager for WooCommerce.
1. The customer buys a licensed product
You mark a WooCommerce product as licensed. It can be a simple product or a variation, so a 1-site plan and a 5-site plan can have different rules.
2. The WooCommerce license key generator creates or assigns the key
When the order reaches the status you choose (for example Completed), the plugin creates the key with a generator, or takes the next unused key from stock you imported from a CSV or TXT file. A generator sets the key format (characters, chunks, prefix and suffix), the number of days until it expires, and the maximum number of activations.
3. The key is delivered
The key is added to the WooCommerce order email and listed on the customer’s My Account › License keys page, so buyers can find it again without a support ticket. Keys are stored encrypted in your database.
4. The customer activates the key
The customer enters the key in your plugin, theme or app. Your software calls your store’s REST API to activate it. Each new site or device uses one activation until the limit is reached. Customers can also activate and deactivate from My Account if you allow it.
5. Your software validates the key
From then on, your software checks the key at startup or before an update. With License Manager Pro, the built-in update server only hands out new versions to keys that are active and not expired, so lapsed licenses stop getting updates on the server side.
For the exact settings behind steps 2 and 3, see our guide to generating WooCommerce order license keys.
What types of WooCommerce license keys can you sell?

Most stores mix these four models. Each one maps to a setting you choose per product or generator.
| License type | How it works | Setting in License Manager | Good for |
|---|---|---|---|
| Single-site / single-device | One key, one activation | Max activations = 1 | Low-price plugins, personal desktop apps |
| Multi-site | One key, several activations | Max activations = 3, 5, 10… | Agency and “pro” plans |
| Time-limited (yearly) | Key expires after a set period; renew to keep updates | Expires in (days) = 365 | Premium plugins and themes, recurring revenue |
| Lifetime | Key never expires | Leave “expires in” empty | One-time sales and launch deals |
Selling on WooCommerce Subscriptions? License Manager Pro can either extend the existing key or issue a new key on each renewal. If you are still choosing a model, read software subscriptions vs licenses.
Why do you need license keys on WooCommerce?
- Stop casual sharing. An activation limit means a key posted in a forum stops working once its seats are used.
- Updates for paying customers only. Tie downloads and update checks to an active, non-expired key.
- Fewer support tickets. Keys sit in the order email and My Account, and you can see each activation in the admin.
- Clean refunds. Keys from refunded, cancelled or failed orders can be moved to a status you choose, and their activation counts reset.
- Renewal revenue. Yearly keys give customers a reason to renew.
Be realistic: no license key makes piracy impossible. Keys make the honest path the easy one. Our guide on how to protect your software covers the other layers.
Common problems when managing WooCommerce license keys

- Sending keys by hand. Manual emails lead to lost or wrong keys. Automatic delivery on the order status fixes this.
- Running out of imported keys. If you sell from stock, sync product stock with the key pool so you never sell a key you do not have.
- One key on 20 sites. Without activation limits you cannot stop it. Set max activations per plan.
- Expired keys still getting updates. Your update check must ask the license server, not trust the client.
- Renewal reminders. Decide how you remind customers. License Manager does not send expiry reminder emails, so use WooCommerce Subscriptions or your email tool for that.
See more in common mistakes in WooCommerce license management.
What are the best plugins for WooCommerce license keys?
WooCommerce has no license key feature built in. These are the common options:
License Manager for WooCommerce

License Manager for WooCommerce is a dedicated license plugin (our product). It covers generators and imported stock, delivery on chosen order statuses, encrypted keys, activation limits, My Account pages and a REST API. Pro also includes Applications with releases and a license-checked update server, a public activate/validate API that needs no secret in your app, WooCommerce Subscriptions renewals, PDF license certificates, webhooks and API rate limiting.
A free version is on WordPress.org.

WooCommerce API Manager

An API-based licensing extension for software and API access. It is capable but has more to set up. We compared Kestrel and License Manager here. Weighing a separate store system instead? See License Manager vs Easy Digital Downloads.
Software Add-on for WooCommerce

A lighter extension that adds a Software product type with a key prefix, version and activation limit, according to its WooCommerce.com documentation. It suits simple stores that do not need an update server or detailed activation records.
How to choose
- Do you sell from imported key stock, generated keys, or both?
- Do you need an update server that blocks expired keys?
- Should customers manage their own activations in My Account?
- Do you sell yearly plans or WooCommerce Subscriptions?
Want to see generators, licenses and activations on a real store? Open the Live Demo or compare plans on the pricing page.
What do store owners ask for? (from Reddit)

Threads about selling keys on WooCommerce keep asking for the same things:
- Automatic delivery of pre-generated keys right after purchase (r/WordPress).
- Per-product key stock that the admin can top up, plus a personal area where buyers see their keys (r/woocommerce).
- Keys limited to one computer while still usable for the same product (r/WordPressPlugins).
All three map to settings above: stock import with stock sync, My Account license pages, and max activations of 1. For device binding in desktop software, see how to node-lock a software license.
How to sell WooCommerce license keys automatically (step by step)
Here is the full flow in License Manager for WooCommerce, from an empty store to a key in the customer’s inbox. Each step names the screen you will use.
Step 1: Install the plugin and back up the encryption files
After activation, the plugin creates wp-content/uploads/lmfwc-files/ with defuse.txt and secret.txt. Every key is encrypted with them, so copy both files somewhere safe before you sell anything.
Step 2: Create a generator
Under License Manager › Generators › Add new, set the character map, the number of chunks and their length, a separator, and an optional prefix such as PRO-. Then set the Maximum activation count (sites or devices per key) and Expires in (days, or empty for lifetime). Make one generator per plan, for example “1 site, 1 year” and “5 sites, 1 year”.
Step 3: Link the generator to the product
Edit the WooCommerce product and open the License Manager tab in Product data. Tick Sell license keys, choose Generate license keys and pick the generator, or choose Sell from stock if you imported keys. For a variable product, do this on each variation so every plan gets its own rules.
Step 4: Choose the order status that delivers keys
In the plugin’s WooCommerce settings, keep Automatic delivery on and tick the statuses under Define license key delivery, usually Completed (and Processing if you want instant delivery for paid orders). Set the Terminated status for refunded, cancelled and failed orders.
Step 5: Let customers see their keys and activations
Turn on Enable “License keys” in the My account settings, plus User activation and User deactivation if customers should manage their own sites or devices. They then see each key, its expiry, its activations and any downloads under My Account.
Step 6: Test, then connect your software
Place a test order and check the order email, the Licenses list and My Account. Finally connect your plugin or app to the activate and validate API so the key actually unlocks something.
Which key setup fits your product?
| Product | Key source | Bind to | Typical limit |
|---|---|---|---|
| WordPress plugin or theme | Generator | Site domain | 1, 5 or unlimited sites per plan |
| Desktop app or Electron app | Generator | Device ID your app creates | 1-3 devices |
| Game keys bought or made elsewhere | Imported stock with stock sync | Whatever the game platform checks | One key per copy |
| Course or e-learning access code | Generator or imported stock | Usually nothing (one-time code) | 1 activation |
| Yearly software subscription | Generator + WooCommerce Subscriptions | Site or device | Per plan; key extended on renewal |
For every setting in detail, see how to set up License Manager on WordPress.
Put license keys on your WooCommerce products
Generators, imported stock, activation limits, My Account pages and a license-checked update server. Plans cover 1, 3 or 15 store sites with a 14-day money-back guarantee.
Live DemoView Pricing