Linux 软件免费装
Banner图

AffLoc — Affiliate Link Localization

开发者 affloc
更新时间 2026年3月30日 19:52
PHP版本: 6.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

links affiliate redirects localization geotargeting

下载

0.2.0

详情介绍:

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

安装:

  1. Upload the plugin files to the /wp-content/plugins/affloc directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Navigate to AffLoc in your WordPress admin menu.
  4. Add your first mapping (e.g., slug: amazon, country: US, url: https://amazon.com/...).
  5. Use the shortcode [affloc_link slug="amazon" text="Buy Now"] in your posts or pages.

屏幕截图:

  • 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"]`.
  • 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.

升级注意事项:

0.2.0 Major release introducing Free version usage limitations, new "Affiliate Text" field, improved Admin UI responsiveness, and WP.org code compliance improvements. 0.1.5 Important security update adding strict IP validation and full HTTPS geolocation API support.

常见问题:

Does it work with caching plugins?

Yes! The substitution happens on the client side (in the browser), meaning your pages remain fully cacheable.

Which IP geolocation service is used?

We use the free ipapi.co service with a secure HTTPS connection. The plugin also caches the location in the user's browser to minimize API calls and speed up link swapping.

更新日志:

0.2.0 0.1.5 0.1.0