plugin-icon

AffCoupon — Coupons and Deals for Affiliate Sites

Автор: CouponThemes·
Display affiliate coupons and deals beautifully. Generate more affiliate sales with click-to-copy coupon codes, deals, and image coupons.
Версия
1.3.1
Последние изменения
Jun 23, 2026

Promote affiliate coupons and deals on your WordPress site. Present coupons and deals the right way, protect affiliate sales, and generate more revenue.

Live Demo

AffCoupon — Coupons and Deals for Affiliate Sites is a coupon plugin that lets you add coupons and deals to your posts and pages with a simple and beautiful shortcode. You can also show coupons and deals on your sidebar or any widget area using the included widget.

You can create three types of coupon:

  • Coupon
  • Deal
  • Image

The coupon shortcode supports click-to-copy coupon codes. When a user clicks the coupon code, the code is copied to the clipboard and a link opens in a new tab — you can use your affiliate link here, so every copy becomes a tracked click.

The Deal shortcode looks the same as the Coupon type. Instead of a coupon code, it shows a customizable button (for example «Get This Deal» or «Get Deal»). When users click the button, your affiliate link opens in a new tab — nothing is copied.

Both types display a discount amount or text on the left so users instantly know what the offer is about. Below the discount, the coupon type is shown (coupon code or deal).

Both the coupon code and the deal button display a tooltip with text you control. The expiration date or text appears on the right; expired coupons display a customizable expired message, and never-expiring coupons can show your own text.

You can customize the date format of the expiration date. Make sure to update the expiration date of your existing coupons after changing the format, otherwise the previous format will still be shown.

You can also show only the coupon code (without the full coupon details) by selecting the shortcode type from the shortcode inserter.

Image coupons are just images — upload a coupon image and give users the option to print it.

Key Features

  • Very lightweight, loads fast.
  • Responsive and attractive shortcode.
  • Live preview of the coupon as you create it.
  • Insert shortcode directly from the post editor.
  • Click-to-copy functionality.
  • Voting system for individual coupons.
  • Social share buttons for individual coupons.
  • Widget to show coupons and deals on widget areas.
  • Easy to use settings.
  • Coupon categories to categorize your coupons.
  • Expiration system to show coupon expiration.
  • Stylesheets and scripts loaded conditionally for better performance.
  • AMP support for all coupon shortcodes.

Included Advanced Features

  • Hide Coupons.
  • Coupon expiration countdown.
  • Coupon Templates.
  • Show Specific Coupons.
  • Show Coupons of a specific Category.
  • Show Coupons of a specific Vendor.
  • Coupons Archive Page.

Naming and Prefixes

All identifiers introduced by this plugin use one of AffCoupon’s owned prefixes:

  • affcoupon_ / AFFCOUPON_ — PHP constants, globals, the plugin slug, and the text domain.
  • WPAF_ — class names.
  • wpaf_ — function names, plugin source file names, PHP hook/action names, option keys, post type and taxonomy slugs, AJAX action names, script and style handles, nonces, and CSS class names.

The legacy [aff-coupon] shortcode tag is preserved only so that existing posts that use [aff-coupon ...] continue to render. It is not the plugin’s text domain.

Source Code and Build Tools

Every JavaScript file authored by this plugin is shipped unminified and human-readable: assets/js/main.js (frontend) and assets/admin/js/admin.js (admin). There is no compiled or bundled plugin JavaScript.

The only minification applied is to the plugin’s CSS. Each minified stylesheet has its unminified source committed alongside it in the package:

  • assets/css/dist/style.min.css -> source assets/css/style.css
  • assets/admin/css/dist/admin.min.css -> source assets/admin/css/admin.css
  • assets/admin/css/dist/jquery-ui.min.css -> source assets/admin/css/jquery-ui.css
  • assets/admin/css/dist/welcome.min.css -> source assets/admin/css/welcome.css

When SCRIPT_DEBUG is enabled, the unminified sources are loaded directly. See assets/README.md for the full asset inventory.

Third-Party Libraries

This plugin bundles the following third-party JavaScript add-ons. These are not present in WordPress core and are loaded with wp_enqueue_script() as dependencies of WordPress’s bundled jQuery (array( 'jquery' )):

  • «The Final Countdown» — a countdown add-on for jQuery, by Edson Hilios (MIT License). File: assets/js/jquery.countdown.min.js. Attribution and full MIT text: assets/js/jquery.countdown.LICENSE.txt. This is a jQuery add-on, not a copy of jQuery itself.
  • jQuery UI Timepicker add-on (MIT License) by Trent Richardson. File: assets/admin/js/jquery-ui-timepicker.js. Attribution: assets/admin/js/jquery-ui-timepicker.LICENSE.txt. Depends on the jQuery UI bundled with WordPress core.

All other JavaScript and CSS in the plugin is original work by the plugin author.

Проверено на
WordPress 7.0
Этот плагин можно скачать и использовать при .