Coupon Counter for Easy Digital Downloads (EDD) is a simple but useful plugin that allows you to dynamically display the remaining or used coupon codes.
Easily display the count of remaining and used coupon codes using the shortcode below.
[cc-edd id="discount-id" format="countdown/count"]
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!
There is a filter available for the “count” display format that allows you to change the separator icon as desired.
For example, you can change the “/” separator to “of”.
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!