Coupon Counter for EDD

By David Vongries

10+ active installationsVersion 1.1

Show how many coupon codes are left (or used) with Easy Digital Downloads (EDD). Create urgency with a live coupon counter.

Description

Coupon Counter for EDD displays the remaining or used coupon codes of an Easy Digital Downloads discount anywhere on your site. Add a simple shortcode to your sales page and let the numbers create urgency.

Display messages like:

  • Only 128 coupons remaining!
  • 34/200 discount codes used!

Features

⏳ Countdown

Show how many coupons are left. The counter updates automatically with every purchase and never drops below 0.

📊 Count

Show how many coupons have been used out of the total, e.g. 34/200.

🧩 Works anywhere

Use the shortcode in posts, pages, the block editor or any page builder. The counter is plain text, so it adapts to your theme’s styling.

🪶 Lightweight

No settings page, no scripts, no styles. Just one shortcode.

✅ EDD 3 ready

Works with Easy Digital Downloads 3.x as well as older versions.

How to use it

  1. Go to Downloads → Discounts and make sure your discount has a Max Uses limit.
  2. Copy the discount ID (see the FAQ below).
  3. Add the shortcode to any post or page:

    [cc-edd id=”293″ format=”countdown”]

Use format="countdown" for the remaining coupons or format="count" for used/total.

Examples

Only [cc-edd id="293" format="countdown"] coupons left!

Will result in: Only xxx coupons left!

[cc-edd id="293" format="count"] discount codes used!

Will result in: xx/xxx discount codes used!

Advanced

To change the “/” separator of the “count” format, for example to “of”, use the filter below:

function prefix_custom_cc_edd_divider() {
    return ' of ';
}
add_filter( 'cc_edd_divider', 'prefix_custom_cc_edd_divider' );

Following the example above, this would result in: xx of xxx discount codes used!

The counter is wrapped in the edd-coupon-counter CSS class, so you can style it as you like.

What’s next?

If you like Coupon Counter for EDD, make sure to check out our other products:

  • Page Builder Framework – A fast & minimalistic WordPress theme designed for the new WordPress era.
  • Ultimate Dashboard – The #1 WordPress plugin to customize your WordPress dashboard and admin area.
  • Better Admin Bar – The plugin to make your clients enjoy WordPress. It replaces the default admin bar to provide the best possible user experience when editing & navigating a website.
  • WP Video Popup – Add a YouTube, Vimeo or Rumble video popup to WordPress. Lightweight, privacy-friendly lightbox that works with any page builder.

Installation

  1. In your WordPress admin, go to Plugins → Add New Plugin and search for “Coupon Counter for EDD”.
  2. Click Install Now, then Activate.
  3. Add the [cc-edd id="293"] shortcode to any post or page (replace 293 with your discount ID).

FAQ

Where do I get the discount ID from?

Go to Downloads → Discounts and hover over the name of your discount. The URL will be displayed in the bottom left corner of your browser and looks something like this: https://yourwebsite.com/wp-admin/edit.php?post_type=download&page=edd-discounts&view=edit_discount&discount=293.

The discount ID is at the end of the URL. In this example, the ID is 293.

Why doesn’t the counter show up?

The discount needs a Max Uses limit. If the ID is wrong or no limit is set, logged-in shop managers see a hint instead of the counter. Visitors see nothing.

Does the counter stop when the coupon expires?

No. The counter keeps showing after the expiration date, in case you still want to display it.

Screenshots

Changelog

1.1 | November 08, 2026

  • Fixed: Counter works with EDD 3.x discounts
  • Fixed: The “Max Uses” hint is only shown to shop managers, not to visitors
  • Fixed: Countdown never goes below 0
  • Tweak: Escaped output & code cleanup
  • Tweak: Updated description
  • Tested up to WordPress 7.1

1.0.3 | November 30, 2023

  • Tested up to WordPress 6.4

1.0.2 | February 03, 2023

  • Minor wording tweaks

1.0.1 | December 07, 2022

  • Tested up to WordPress 6.1 & EDD 3.0

1.0 | May 02, 2020

  • Initial release