Title: DEL Download Codes
Author: David Elfström Lilja
Published: <strong>November 27, 2026</strong>
Last modified: November 27, 2026

---

Search plugins

![](https://ps.w.org/del-download-codes/assets/banner-772x250.png?rev=3828999)

![](https://ps.w.org/del-download-codes/assets/icon-256x256.png?rev=3828999)

# DEL Download Codes

 By [David Elfström Lilja](https://profiles.wordpress.org/delplugins/)

[Download](https://downloads.wordpress.org/plugin/del-download-codes.0.7.0.zip)

 * [Details](https://wordpress.org/plugins/del-download-codes/#description)
 * [Reviews](https://wordpress.org/plugins/del-download-codes/#reviews)
 *  [Installation](https://wordpress.org/plugins/del-download-codes/#installation)
 * [Development](https://wordpress.org/plugins/del-download-codes/#developers)

 [Support](https://wordpress.org/support/plugin/del-download-codes/)

## Description

Made by a record label for records. Two ways to give buyers the digital album, in
one plugin:

 1. **Bandcamp codes with your WooCommerce orders.** Import the codes Bandcamp gives
    you, link them to a product, and every buyer gets one code per record, by email.
 2. **Your own codes, downloaded from your own site.** Make codes, print them on cards
    for the record sleeve (A4 sheet with QR codes, or a file for your printer), and
    buyers download the files from a download page on your site. Or hand them out with
    WooCommerce orders. WooCommerce is not needed for the cards.

Coming from **WP Download Codes**, which was closed on wordpress.org in 2024 because
of security holes? Import everything with one click: releases, files, codes and 
the downloads already made. Cards you printed years ago keep working.

#### Bandcamp codes with WooCommerce

 * **Import Bandcamp codes.** Upload the CSV file from Bandcamp’s _Tools > Track/
   album codes > export_, or paste codes one per line. The first column is used,
   a header row is skipped, duplicates are caught, and you see a preview before 
   anything is saved.
 * **One pool per release and format.** Link a pool to a product, or to a single
   variation such as “Vinyl”, so the CD gets CD codes and the vinyl gets vinyl codes.
   A record can give codes from several pools, such as the album and a bonus EP.
 * **One code per record.** Three records give three codes. Or one code per order
   line, if you prefer.
 * **Where the customer sees it.** In the order confirmation email, on the thank-
   you page and under My Account, each with a “Redeem on Bandcamp” button that opens
   the release directly.
 * **Let the customer choose.** Not everyone wants a code. Set a pool to “only buyers
   who tick the box” and a checkbox appears in the checkout (block and classic).
   No codes are wasted.
 * **Tell buyers on the product page.** A line above the Add to cart button, such
   as “Free Bandcamp download code included with this purchase.”
 * **Campaigns.** “The first 10 buyers get a Bandcamp code”: import 10 codes and
   set the pool to Campaign. When they are gone, they are gone.
 * **Never a silent gap.** When a pool runs dry, the order waits and you get an 
   email. Import more codes and every waiting customer gets theirs by email, oldest
   order first.
 * **Warnings before it happens,** at a level you choose per pool.
 * **Cancelled and refunded orders.** Codes are marked as used (Bandcamp codes cannot
   be recalled) or put back in the pool, per pool.
 * **On the order screen.** See the codes, hand out missing ones, replace a lost
   code, and email the codes again.
 * **Safe with many orders at once.** Two orders never share a code. Works with 
   HPOS and the block checkout.

#### Own codes, downloaded from your site

 * **Make codes.** Hundreds or thousands at once, such as `AUR-7K2M-9QXD`. No letters
   that look like digits, and a buyer who types O for 0 or I for 1 still gets in.
 * **Print them.** An A4 sheet with 10 cards and QR codes, ready to cut and pack
   in the sleeve, or a CSV/TSV file for mail merge at your printer. Codes made for
   printing are kept apart, so the shop never emails a code that is also on a card.
 * **Or hand them out with WooCommerce orders,** like Bandcamp codes, with a Download
   button in the email.
 * **A download page** is made for you. The buyer types the code or scans the QR
   code, can leave an email address with newsletter consent, and gets a download
   button per file, with the cover.
 * **Safe downloads.** Files live outside the website where the host allows it, 
   otherwise in a folder the web server refuses to serve. Each download button is
   a signed link that expires after 24 hours. Downloads per code are limited (5 
   by default), a resumed download is not counted twice, and wrong guesses are slowed
   down. Works behind Cloudflare.
 * **Big files.** Upload in the admin, or put large files in the folder with FTP.
   Files are streamed in parts, so a 2 GB zip works on ordinary hosting. Or link
   to files on S3 or another server.
 * **See what happens.** Codes used, downloads, and email addresses per release,
   with a CSV of the addresses.
 * **Block a code** that has been shared online.

#### DEL Download Codes Pro (separate plugin)

DEL Download Codes Pro is a separate plugin, sold at [delplugins.se](https://delplugins.se/).
It is not part of this plugin; this plugin works fully without it. Pro adds:

 * **Extras for the first buyers.** “The first 25 buyers get a signed poster.” Make
   an extras pool, say what the buyer gets and how many you have, and link it to
   the record.
 * **Release dates for pre-orders.** Codes work before the release, but nothing 
   can be downloaded until the day, and everyone who left an address gets an email
   with a link when it is out.
 * **The buyer’s library.** A code becomes lasting access: buyers get a link by 
   email to all their releases, also after losing the card.
 * **Tracklist and players** on the download page.
 * **Print-ready PDF.** One card per page with bleed and crop marks, in business
   card, CD or your own size, with your background, logo and back.
 * **Statistics per source.** See how many codes from the merch table, the record
   shop or the shop are used, over time.

Extras in detail:

 * **The first paid orders get one each.** When they are gone, they are gone, and
   the line on the product page disappears. A buyer who missed out never gets one
   later.
 * **The person who packs sees it.** The order line says “Extras: a signed poster
   × 1”, in the order email, on the order screen and on packing slips, and the order
   screen has a “Pack with this order” box.
 * **Handed out when the order is paid,** also when download codes wait until the
   order is completed, so the item is packed before it ships.
 * **A cancelled or refunded order** puts the item back in stock for the next buyer,
   as long as the order had not been completed (shipped).
 * Works next to download codes on the same product: the record can give a Bandcamp
   code and a poster.

#### Moving from WP Download Codes

 * Each release becomes a pool, with its file (copied or moved into the protected
   folder), its download limit, its code groups and the number of downloads each
   code has already used.
 * The codes keep their exact characters, so every printed card still works.
 * Old pages with `[download-code]` and links or QR codes with `?yourcode=` use 
   the new download page automatically.
 * Nothing in the old tables is changed. You can run the import again later: releases
   already imported are skipped.

Your codes stay in your own database. Nothing is sent to any outside service. English
and Swedish.

### Credits

QR codes are drawn with qrcode-generator by Kazuhiko Arase (MIT license).

## Screenshots

[⌊The product page: framed lines tell buyers that a free Bandcamp download code 
comes with the record, and (Pro) that the first buyers get a signed poster.⌉⌊The
product page: framed lines tell buyers that a free Bandcamp download code comes 
with the record, and (Pro) that the first buyers get a signed poster.⌉[

The product page: framed lines tell buyers that a free Bandcamp download code comes
with the record, and (Pro) that the first buyers get a signed poster.

[⌊The checkout: buyers tick the box if they want the code, so no codes are wasted.⌉⌊
The checkout: buyers tick the box if they want the code, so no codes are wasted.⌉[

The checkout: buyers tick the box if they want the code, so no codes are wasted.

[⌊The order email: one code per record, each with a button that opens the release
on Bandcamp.⌉⌊The order email: one code per record, each with a button that opens
the release on Bandcamp.⌉[

The order email: one code per record, each with a button that opens the release 
on Bandcamp.

[⌊Code pools: Bandcamp codes, own codes and (Pro) extras, how many are left, which
products use them, and which pools run low, are empty, or are campaigns.⌉⌊Code pools:
Bandcamp codes, own codes and (Pro) extras, how many are left, which products use
them, and which pools run low, are empty, or are campaigns.⌉[

Code pools: Bandcamp codes, own codes and (Pro) extras, how many are left, which
products use them, and which pools run low, are empty, or are campaigns.

[⌊Own codes: the files of the release, making codes for printing or for the shop,
and the numbers from the download page.⌉⌊Own codes: the files of the release, making
codes for printing or for the shop, and the numbers from the download page.⌉[

Own codes: the files of the release, making codes for printing or for the shop, 
and the numbers from the download page.

[⌊The A4 print sheet: 10 cards per page with the code and a QR code, ready to cut
and pack in the sleeve.⌉⌊The A4 print sheet: 10 cards per page with the code and
a QR code, ready to cut and pack in the sleeve.⌉[

The A4 print sheet: 10 cards per page with the code and a QR code, ready to cut 
and pack in the sleeve.

[⌊The download page: the buyer enters the code or scans the QR code and downloads
the files.⌉⌊The download page: the buyer enters the code or scans the QR code and
downloads the files.⌉[

The download page: the buyer enters the code or scans the QR code and downloads 
the files.

[⌊Moving from WP Download Codes: every release, with its codes, used downloads and
file, is brought over in one go.⌉⌊Moving from WP Download Codes: every release, 
with its codes, used downloads and file, is brought over in one go.⌉[

Moving from WP Download Codes: every release, with its codes, used downloads and
file, is brought over in one go.

[⌊Pro: extras on the order screen: the order line says "Extras: a signed Aurora 
poster × 1", and the box beside it says what to pack.⌉⌊Pro: extras on the order 
screen: the order line says "Extras: a signed Aurora poster × 1", and the box beside
it says what to pack.⌉[

Pro: extras on the order screen: the order line says “Extras: a signed Aurora poster
× 1”, and the box beside it says what to pack.

## Installation

 1. Install and activate the plugin.
 2. Go to **Download Codes > Code pools** and create a pool.
 3. For Bandcamp codes: import the codes and choose the products. For own codes: add
    the files and make codes.
 4. Coming from WP Download Codes: go to **Download Codes > Import WP Download Codes**
    before you delete the old plugin (deleting it removes its tables).

## FAQ

### Where do I get Bandcamp codes?

In Bandcamp, go to Tools, then Track/album codes. Create a batch for the release
and click export next to it. Upload that file to the pool.

### Do I need WooCommerce?

Only to hand out codes with orders. Own codes for printed cards work without it.

### What happens if I run out of codes?

The order goes through as normal and waits, the customer is told more codes are 
on the way, and you get an email. When you add more codes, waiting orders get theirs
automatically by email.

### Does it work with variable products?

Yes. Set pools on the product as the default for all variations, override them per
variation, or choose “No download codes” for a variation such as a T-shirt.

### Is the download folder safe on nginx?

Where the host allows it, the plugin puts the folder outside the website, next to
the WordPress folder, where no web server can reach it. Otherwise it goes in the
uploads folder, closed with .htaccess and web.config: Apache and IIS obey those,
nginx does not. The plugin checks the folder from outside when you add the first
file, and you can check again under **Download Codes > Settings**. If it is open,
ask your host to close it or use links to external storage.

### Why was WP Download Codes closed, and is this safe?

It printed the typed code back to the page without escaping it (a cross-site scripting
hole), and its download links were made from a running number, so anyone could work
them out and download every release without a code. Here, everything shown is escaped,
download links are signed with a secret and expire, and files are only sent after
the code, its download limit and the link are checked.

### Does the plugin send anything to another service?

No. Codes, files and downloads stay on your own server, and QR codes are made there
too. The plugin includes Freemius, the service that handles licences for Pro. It
does not connect to Freemius until you choose to buy or activate a Pro licence.

### What happens to my codes if I delete the plugin?

They are kept, because they are your record of what each customer received. Tick“
Also delete all pools and codes” in Settings first if you want them removed. Uploaded
release files are never deleted.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“DEL Download Codes” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ David Elfström Lilja ](https://profiles.wordpress.org/delplugins/)

[Translate “DEL Download Codes” into your language.](https://translate.wordpress.org/projects/wp-plugins/del-download-codes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/del-download-codes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/del-download-codes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/del-download-codes/)
by [RSS](https://plugins.trac.wordpress.org/log/del-download-codes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.7.0

 * Buy and activate DEL Download Codes Pro from WordPress (Freemius). Nothing is
   sent to Freemius until you activate a licence.
 * Pro is a plugin of its own. It will not run next to the free version: activating
   it offers to switch in one click, and deleting the free version afterwards keeps
   all data.
 * More places on the download page where other plugins can add to it.

#### 0.6.1

 * Own codes can be handed out with WooCommerce orders in this plugin.
 * Styles and scripts are loaded the WordPress way; the download page form has a
   nonce.

#### 0.6.0

 * Extras for the first buyers and own codes handed out with WooCommerce orders 
   move to DEL Download Codes Pro. The free version shows them with a link.
 * Free and Pro can be installed side by side: Pro takes over.

#### 0.5.0

 * Extras for the first buyers: a T-shirt, a signed poster or anything else packed
   with the order, with stock, “gone when gone”, a line on the product page and 
   on the order, and back to stock when an order is cancelled.

#### 0.4.0

 * Import from WP Download Codes: releases, files, code groups and used downloads.
   Old [download-code] pages and ?yourcode= links keep working.
 * WooCommerce is optional: own codes for printed cards work without a shop.
 * Uploads go through WordPress’s own upload handling.
 * The folder for own files is put outside the website where the host allows it,
   so it is closed also on nginx.
 * Hardening of the import: only files inside the old download folder, never links
   or script files; an import cut short is finished on the next run.

#### 0.3.0

 * Own codes: make codes, print them (A4 sheet with QR codes, CSV/TSV for mail merge)
   or hand them out with orders, and let buyers download the files on a download
   page on your own site, with signed links, a download limit, resume support, email
   collection with consent and protection against guessing.

#### 0.2.1

 * Standard checkbox text is now “Yes, I want the free download”, which reads right
   for one record or many.

#### 0.2.0

 * A product or variation can give codes from several pools, for example the album
   and a bonus EP. Each pool is handled on its own (waiting list, campaigns, customer
   chooses, refunds), and customers see the pool name when a record gives codes 
   from more than one.
 * The product search in a pool marks products that already have pools.

#### 0.1.8

 * Pool list: search (name, source and product names), sortable columns that are
   remembered, 50 per page, fast with hundreds of pools.
 * Choosing an import file checks it at once; one click on the preview imports.

#### 0.1.7

 * A pool page has the same three buttons at the top and the bottom: Save pool, 
   Delete pool, Add new pool. Delete is greyed out, with the reason, when the pool
   cannot be deleted.

#### 0.1.6

 * “Add pool” button next to the heading on a pool’s page.

#### 0.1.5

 * A new pool starts from the settings of the pool you saved last (mode, texts, 
   redeem link), with a link back to the standard settings.

#### 0.1.4

 * An empty pool name is filled in from the product you choose (“Artist – Album (
   CD)” becomes “Artist – Album”).
 * “Blocked” is now called “Used”: codes that will not be handed out again, because
   you marked them as used or their order was cancelled.

#### 0.1.3

 * The checkout checkbox and the product page line get a frame in the theme’s text
   colour, so they are seen. No “(optional)” after the checkbox in the classic checkout
   either.

#### 0.1.2

 * A line on the product page, for example “Free Bandcamp download code included
   with this purchase.” On by default per pool, with your own text if you like. 
   Follows the pool mode, hides when a campaign is over, works in classic and block
   themes and per variation.

#### 0.1.1

 * Customer can choose a code in the checkout (block and classic), campaign pools(“
   when the codes are gone, they are gone”).
 * Choose products and variations right in the pool settings.
 * Delete a pool from the list, with a clear warning.
 * Fields show the values in use instead of grey examples; customer texts follow
   the shop language.
 * Import box folds away; clearer code buttons (“Mark as used”, “Put back in pool”).

#### 0.1.0

 * First version: pools, Bandcamp CSV import with preview, hand-out with WooCommerce
   orders, waiting list, low and empty warnings, cancel and refund handling, order
   screen tools.

## Meta

 *  Version **0.7.0**
 *  Last updated **40 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [Bandcamp](https://wordpress.org/plugins/tags/bandcamp/)[download codes](https://wordpress.org/plugins/tags/download-codes/)
   [music](https://wordpress.org/plugins/tags/music/)[woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/del-download-codes/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/del-download-codes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/del-download-codes/reviews/)

## Contributors

 *   [ David Elfström Lilja ](https://profiles.wordpress.org/delplugins/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/del-download-codes/)