Local Links

外掛說明

This plugin was originally written for authors, but may be useful for others that link to stores such as Amazon, Apple, and Kobo.

It will automatically edit links to various sites so that the user is directed to their local site. It will work on existing links and new ones. Simply add links to your site as usual, and they will be rewritten on the fly to send your visitors to their local site.

In addition, some tidying up of links is performed to remove extraneous junk. If you have affiliate codes, the relevant code will be added to that store’s links.

Changes are only made in the user’s browser. WordPress posts and pages are not changed, so if the plugin is deactivated or removed, they will return to their previous state.

Currently Supported Stores:

  • Amazon
  • Apple Books
  • Apple iTunes (audiobooks)
  • Kobo
  • Alibris
  • Google Play
  • AbeBooks
  • Barnes & Noble
  • Bookshop.org
  • OneBookShelf sites (DriveThruFiction, DriveThruCards, DriveThruComics, DriveThruRPG, Wargame Vault)
  • Smashwords

The locallinks_cc GET parameter can be used for testing. For example, add ?locallinks_cc=fr to test plugin behaviour if the user is in France.

From version 4.1, Amazon Attribution links are supported. If a link has Amazon Attribution tags, they will be retained. For more information about Amazon Attribution, see: https://advertising.amazon.com/help?#GJXTJCLK4WTWTQWU

螢幕擷圖

  • The settings page

安裝方式

Some vendors require the GeoIP Detection plugin. You may wish to install and configure that before continuing.

  1. Upload the plugin zip file using WordPress’ plugin installer, or install the plugin through the WordPress plugins screen directly (search for ‘Local Links Robin Phillips’)
  2. Optionally install, activate, and configure the GeoIP Detection plugin
  3. Activate the plugin through the ‘Plugins’ screen in WordPress
  4. Use the Settings->Local Links screen to select which vendor links should be localised

使用者評論

2023 年 4 月 7 日
My product pages look so much cleaner now! Added bonus that I can use affiliate links!
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Local Links〉的開發相關工作。

參與者

將〈Local Links〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

v4.5

Amazon links now direct users in Ireland to Amazon UK

v4.4

Amazon links now direct New Zealand users to Amazon Australia

v4.3

Fixed Cross-Site Request Forgery bug that could lead to unauthorised plugin settings changes

v4.2

Added support for Smashwords affiliate links

v4.1

Added support for Amazon Attribution links. More on Amazon Attribution here: https://advertising.amazon.com/help?#GJXTJCLK4WTWTQWU

v4.0