Skip to content

Affiliate Coupon Reveal

Free WordPress plugin Version 1.0.0 GPL-2.0-or-later

Affiliate Coupon Reveal is a free WordPress plugin that shows a coupon code as a "Show coupon code" button with the code's last two characters peeking out. When a visitor clicks it, the code appears and is copied to the clipboard, your affiliate link opens in a new tab so the store records the click, and one reveal is counted. You add a coupon with the "Coupon Reveal" block or the [coupon_reveal] shortcode, and Settings → Coupon Reveal shows how many times each coupon was revealed, in total and in the last 7 days.

Download free Try the live demo

Who it is for

  • Coupon and deal sites, and bloggers who publish discount codes from affiliate programs.
  • Review sites that want the reader to click the affiliate link before using a code, so the sale is credited.
  • Anyone who wants to know which coupons readers actually use, without an analytics account.

What it does

  • A "Coupon Reveal" block: code, affiliate link, store name, short note and button text in the block settings, with a live preview in the editor.
  • The [coupon_reveal] shortcode for the classic editor, widgets and page builders.
  • One click reveals the code, copies it to the clipboard and opens the affiliate link in a new tab (or the same tab, if you prefer).
  • The button shows the code's last two characters (••••20) so readers see a real code is waiting; a "Copy" button and a "Go to the store" link next to the revealed code.
  • A reveals report: every coupon shown on your site with its total reveals, the last 7 days and the last reveal, and a reset button.
  • Affiliate links marked rel="sponsored nofollow", as Google asks for paid links (can be turned off).
  • Accessible: a real button, the result announced to screen readers; without JavaScript the code is simply shown.
  • Small and private: no outside service, no cookies, no visitor data stored — a number per coupon and per day.
  • Hooks for developers: acr_coupon, acr_coupon_visible, acr_coupon_html, acr_link_sponsored, acr_count_reveal, acr_reveal_counted, acr_report_rows and the acr:revealed JavaScript event.

Live demo

See Affiliate Coupon Reveal working with sample data: the site owner screen and what your visitors see. Change anything and watch the result.

your-site.com › Best deals for hikers this month

Best deals for hikers this month

We checked these codes this week. Click a button to reveal the code: it is copied for you, and the store opens in a new tab.

Example Outdoor Shop20% off hiking boots
TRAIL20Go to the store

On your site this button also opens shop.example.com in a new tab. In this demo it does not.

Example Camping StoreFree shipping on orders over $50
FREESHIPGo to the store

On your site this button also opens store.example.net in a new tab. In this demo it does not.

Example Trail Maps10% off the first year
WELCOME10Go to the store

On your site this button also opens maps.example.org in a new tab. In this demo it does not.

Open the live demo

How to install

  1. Download the zip file (the link arrives by email).
  2. In WordPress open Plugins → Add New → Upload Plugin, choose the zip and click Install Now, then Activate.
  3. Edit a post, add the "Coupon Reveal" block, and enter the coupon code and your affiliate link in the block settings. Or paste [coupon_reveal code="SAVE20" url="https://your-affiliate-link"].
  4. View the post and click the button. Settings → Coupon Reveal shows the reveal in the report.

Download Affiliate Coupon Reveal 1.0.0

Enter your email and we send you the download link. The same address gets one short email when this tool has a new version, with what changed. Nothing else is ever sent, and every email has a one-click unsubscribe link.

Version history

Version 1.0.0 — November 29, 2026

  • First release

Known bugs

No known bugs in version 1.0.0. Found one? Tell us through the customer portal.

Questions

Does the store still record my affiliate click?

Yes. The click on the button opens your affiliate link exactly like a normal link, so the store and the affiliate network record the visit and set their cookie. That is the point of a reveal button: the reader clicks your link before using the code.

Why does the store open in a new tab?

The reader needs the code at the store's checkout. Your page with the revealed code stays open in the first tab, and the code is already copied. You can switch to the same tab in the settings.

Is the coupon code hidden from the page source?

No. The code is in the page's HTML, as in every coupon reveal plugin, so it can be shown instantly without a second request. The button hides it on the screen and makes the click count. Do not use it for codes that must stay secret.

How are reveals counted?

Each click on the button sends one small request to your own site. Only coupons that your site has shown are counted, at most 30 per visitor in 10 minutes, and nothing about the visitor is stored: only a number per coupon and per day, kept for 90 days.

What does the new version notice send?

Twice a day the plugin asks affiliatepro.org whether a newer version exists. It sends only the plugin name and the installed version (and, like any web request, your server's IP address). It can be turned off in the settings.

What happens when I delete the plugin?

Deleting it from the Plugins screen removes its settings, its list of coupons and the counts. Blocks and shortcodes stay in your posts and show nothing until the plugin is active again. Deactivating keeps everything.

Request custom development

An expiry date that hides a coupon by itself, a coupons page by store and category, or a daily reveals report for each coupon with CSV export. We build extensions on top of this tool for your site.

Request custom development

Related AffiliatePro products