Snipr Links
WordPress plugin: Pretty Links + ThirstyAffiliates parity, synced to snipr.sh
by Snipr · github.com/absaii50/snipr-affiliate-links · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/absaii50/snipr-affiliate-links/archive/refs/heads/main.zipReadme
Snipr Links — WordPress Plugin
Pretty Links + ThirstyAffiliates on your domain, synced to snipr.sh.
Every link gets two URLs — yoursite.com/go/{slug} and snipr.sh/r/{slug} — with one destination, one dashboard, and automatic sync.
Current version: 4.4.0
Features
| Area | Includes |
|---|---|
| Core | Create/edit/delete links, branded slugs, dual URL sync, categories, folders, tags |
| Redirects | HTTP 301/302/307, meta refresh, JS, pixel, geo/device/browser/OS/time rules, A/B & rotation |
| PrettyPay | Stripe Payment Links, Buy Button embed, Checkout Sessions, webhook conversions |
| Link in Bio | 5 themes, social icons, animations, bio click analytics |
| Pro | Password gate, cloak/iframe, webhooks, click email alerts, sparklines, QR codes |
| Import | CSV bulk, Pretty Links export, ThirstyAffiliates export |
| Integrations | MonsterInsights, Uncanny Automator, GA4/GTM, REST API, WP-CLI |
Requirements
- WordPress 6.4+
- PHP 8.1+
- Pretty permalinks enabled
- Snipr Pro+ account for API sync (optional — WP links work without API key)
Install
From ZIP (production)
- Download or clone this repo
- Copy the folder to
wp-content/plugins/snipr-affiliate-links/ - Activate Snipr Links in WordPress admin
- Go to Snipr Links → Settings → add your Snipr API key
- Create your first link
Local development + tests (Docker)
# From plugin root
bash tests/run-live-tests.sh # 66 assertions
bash tests/run-deep-tests.sh # live + deep + HTTP (95+ checks)
Requires Docker. WordPress runs at http://localhost:9080 (admin: admin / admin).
Optional live API test:
SNIPR_API_KEY=sk_live_... bash tests/run-deep-tests.sh
Quick usage
Shortcode:
[snipr_link slug="amazon-deal"]Buy now[/snipr_link]
[snipr_product_box slug="amazon-deal"]
[snipr_share slug="amazon-deal" networks="twitter,whatsapp"]
[snipr_prettypay slug="checkout-slug"]
[snipr_bio]
WP-CLI:
wp snipr sync
wp snipr list --limit=20
wp snipr import links.csv --pretty
wp snipr folders pull
wp snipr health --id=123
Stripe webhook (PrettyPay conversions):
Settings shows your endpoint — POST /wp-json/snipr/v1/stripe-webhook
Listen for checkout.session.completed.
Project structure
snipr-affiliate-links/
├── snipr-affiliate-links.php # Bootstrap
├── includes/ # 50+ PHP classes
├── assets/ # CSS, JS, icons
├── tests/ # Docker test suite
├── docker-compose.test.yml
└── uninstall.php
License
GPL-2.0-or-later