跳到内容

AffLoc — Affiliate Link Localization

v0.2.0

AffLoc · 2026年3月30日 上架

Stop losing affiliate commissions to international visitors. AffLoc auto-detects country and swaps links instantly.

正在使用
10 以下
评分
暂无
累计下载
460
最近更新
2026年3月30日
需要 WordPress 6.0+已测试到 6.9.12

贡献者

截图

The AffLoc admin page featuring the Add New Mapping form (Offer Slug, Country search, Affiliate text and URL fields) alongside the sidebar with White-label Shortcode (Pro) , Shortcode Helper , and Import / Export Mappings tools.
The AffLoc admin page featuring the Add New Mapping form (Offer Slug, Country search, Affiliate text and URL fields) alongside the sidebar with White-label Shortcode (Pro) , Shortcode Helper , and Import / Export Mappings tools.
The Existing Mappings table — all mappings grouped by slug/project, showing country flags, destination URLs, ready-to-copy shortcodes with a "Copy Shortcode" button, creation date, and Edit/Delete row actions.
The Existing Mappings table — all mappings grouped by slug/project, showing country flags, destination URLs, ready-to-copy shortcodes with a "Copy Shortcode" button, creation date, and Edit/Delete row actions.
Inserting the shortcode into a page using the WordPress block editor (Gutenberg) — add a standard Shortcode block and paste [affloc_link slug="your-slug" text="Buy Now"] .
Inserting the shortcode into a page using the WordPress block editor (Gutenberg) — add a standard Shortcode block and paste [affloc_link slug="your-slug" text="Buy Now"] .
The rendered result on the front end — a geo-localised "Buy Now" affiliate link automatically swapped to the correct regional URL based on the visitor's country.
The rendered result on the front end — a geo-localised "Buy Now" affiliate link automatically swapped to the correct regional URL based on the visitor's country.

AffLoc is a lightweight, cache-friendly WordPress plugin designed to help you maximize your affiliate revenue globally. It automatically detects your visitor’s country via IP and swaps out your affiliate links to match their regional store (e.g., Amazon US vs Amazon UK), ensuring you never lose a commission due to a “Not Available in Your Country” error.

Features

  • Automatic Geolocation: Detects visitor country securely and accurately.
  • Country-Specific Links: Assign different URLs for the same offer based on the user’s country code.
  • Cache-Friendly: Uses a hybrid JavaScript approach so it works perfectly with caching plugins (WP Rocket, W3 Total Cache, etc.).
  • Global Fallback: Define a default link for countries without a specific mapping.
  • Easy Shortcodes: Simply use [affloc_link slug="your-offer"] and let the plugin handle the rest.

External Services

This plugin relies on the following external services to function:
1. ipapi.co – Used to detect the visitor’s country securely over HTTPS by resolving their IP address. Their privacy policy is available at https://ipapi.co/privacy/. No personal data other than the user’s IP address and proxy headers is transmitted.
2. flagcdn.com – Used to deliver fast and reliable SVG/PNG country flag icons inside the WordPress Admin Dashboard.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums