This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Amazon Affiliate Change to Smile Links


Looks for a shortened amazon affiliate link like and converts it to the smile version ( at runtime. This process can be slow so there is some caching.

How the WordPress AmazonSmile plugin works – Long Version from

Adds a filter so the content is passed to a function.
Content is searched for a shortened Amazon Affiliate Link.
The ‘key’ is extracted from the url and checked against cache.
If the end url is not found, the full url is grabbed, converted to smile and thrown into cache.

It’s pretty simple to run, just drop it in the plugin directory and activate that’s all it takes.


  1. Upload the complete directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Test – You assume all risk in changing urls.


Can I use this to change regular affiliate links to affiliate links?

Yes – to do so, change the line “return $content;” to “return str_replace($normal_url,$smile_url,$content);”. Please make sure to test all your links.


There are no reviews for this plugin.

Contributors & Developers

“WP Amazon Affiliate Change to Smile Links” is open source software. The following people have contributed to this plugin.




  • Updated readme.


  • Updated readme / updated after testing with WP 5.3.