Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tabaix/tabaix-coupons-sync/archive/refs/heads/main.zipA WordPress plugin that makes coupon codes a single source of truth. Add a code once and it appears on the /coupons/ page, the homepage Deals section and llms.txt — all at the same time.
Built for tabaix.com. Free to use and share (GPLv2 or later).
The problem it solves
Coupon codes used to live as hand-built HTML in three places: the /coupons/ page grid, the homepage "Sponsored · Deals" section, and the llms.txt Coupons section. Every new code meant editing all three — and the FAQ count ("teeno codes") went stale.
This plugin fixes that: one admin screen, and every surface reads from it.
Features
- One admin screen — Settings > Coupons: add, edit, hide (without deleting) and delete coupons. Fields: brand, subtitle, offer, offer detail, homepage offer line, tags, category, search keywords, card colour, logo, code, shop link, badge, guide link, fine print, llms.txt offer line, checked-on date.
[tabaix_coupons]— renders the coupon grid in the same card design as the live/coupons/page, so the page's filter pills, search and copy script keep working (same classes and ids:#couponGrid,article.card,data-cat,data-name,data-code).[tabaix_coupons style="deals"]— renders the homepage Deals card design (.tx-deal) with its own copy handler and "Checked on" date line.[tabaix_coupons_count]— prints the number of active coupons. Use it in the/coupons/FAQ so the count never goes stale again.- llms.txt feed — the
tabaix_coupons_listfilter returns the active coupons (brand, offer, code, url). The Tabaix llms.txt Auto Update plugin (v1.0.1+) reads it, sollms.txtgets the same codes automatically. - Checked-on rule — a new coupon gets today's date. Editing the offer or the code updates the date to the edit day, unless you typed a date in the form.
- Hide without deleting — a hidden coupon stays in the list and can be shown again any time; it disappears from the page, the homepage and
llms.txtat once. - No tracking, no external requests, no extra dependencies. No rates are stored or shown in any public output.
Requirements
- WordPress 6.0 or later (tested up to 6.8). No extra libraries — the plugin only uses core WordPress functions.
Installation
- Download the latest release (or clone this repo).
- Upload the
tabaix-coupons-syncfolder to/wp-content/plugins/, or in WP Admin go to Plugins > Add New > Upload Plugin and install the ZIP. - Activate Tabaix Coupons Sync. The four codes live on
/coupons/at release time are seeded on activation. - Replace the hand-built cards on the
/coupons/page with[tabaix_coupons]and the homepage Deals cards with[tabaix_coupons style="deals"]— back up the old content first. - Add new codes at Settings > Coupons.
Usage
- Add a coupon: Settings > Coupons > add the brand, offer, code, shop link and (optionally) logo. The checked-on date defaults to today.
- Show the grid: put
[tabaix_coupons]on the coupons page. Addcategory="..."to show one category only. - Show the homepage deals: put
[tabaix_coupons style="deals"]in the Deals section. - Show the count: put
[tabaix_coupons_count]in the FAQ text, e.g. "Ye [tabaix_coupons_count] codes published aur active hain". - Hide a coupon fast: Settings > Coupons > Hide. It disappears from every surface at once.
FAQ
Does deactivating a coupon delete it? No. A hidden coupon stays in the list and can be shown again any time.
Why does the /coupons/ card have no "Checked on" line? The live card design has no such line, so the shortcode does not add one. The date is stored per coupon and shown on the homepage Deals cards and in the admin list.
Links
Changelog
1.0.0
- First release.
License
GPLv2 or later — see https://www.gnu.org/licenses/gpl-2.0.html