Replace Amazon Links in Feed with post URL

April 29, 2019

Replace Amazon Links in Feed with post URL Plugin

A plugin to replace Amazon Affiliate links in a feed with a URL to the post directly.

According to Amazon’s Terms of Service, affiliates cannot use affiliate links in any emails. Unfortunately, many people use RSS feeds to populate their emails to users. One solution was to simply remove the affiliate links from feeds, which works just fine. But I came up with a solution (out of need) that changed the affiliate link in a feed into a link to the post itself.

Once on the live site, the affiliate link will work as normal, this plugin just facilitates an easier way for the end user to get the affiliate link.

Installation

  1. Upload replace-amazon-links-kd.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it! The plugin will do the rest. It may need a little time for the feed to be recreated.

FAQ

I’m getting an error when I activate the plugin!

If you are a client of Klong Designs, you may already have this functionality added to your site already. Please post a support question on the support tab. Most likely you already have this code installed and since the function is the same it’s cause this duplicate function declaration error.

Changelog

1.1

  • Added amzn.com to Amazon links to change.

1.0

  • Initial Release to WP.org publicly

Details

  • Version: 1.1
  • Active installations: 70
  • WordPress Version: 3.0.1
  • Tested up to: 5.2.21

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars