Title: MushDev Tag Replacer for Amazon Associates
Author: mushdev
Published: <strong>October 9, 2026</strong>
Last modified: October 9, 2026

---

Search plugins

![](https://ps.w.org/mushdev-tag-replacer-for-amazon-associates/assets/banner-772x250.
png?rev=3736127)

![](https://ps.w.org/mushdev-tag-replacer-for-amazon-associates/assets/icon-256x256.
png?rev=3736127)

# MushDev Tag Replacer for Amazon Associates

 By [mushdev](https://profiles.wordpress.org/mushdev/)

[Download](https://downloads.wordpress.org/plugin/mushdev-tag-replacer-for-amazon-associates.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/mushdev-tag-replacer-for-amazon-associates/#description)
 * [Reviews](https://wordpress.org/plugins/mushdev-tag-replacer-for-amazon-associates/#reviews)
 *  [Installation](https://wordpress.org/plugins/mushdev-tag-replacer-for-amazon-associates/#installation)
 * [Development](https://wordpress.org/plugins/mushdev-tag-replacer-for-amazon-associates/#developers)

 [Support](https://wordpress.org/support/plugin/mushdev-tag-replacer-for-amazon-associates/)

## Description

If you migrated content from another WordPress site, your posts may still contain
Amazon affiliate links using your old Associates tracking tag. This plugin finds
Amazon affiliate URLs across your site and replaces only the `tag` query parameter—
never the ASIN, product path, anchor text, or any other query parameter.

Key features:

 * Scan/Preview mode that never touches the database
 * Batch AJAX processing designed for sites with thousands of posts
 * Conservative URL parsing — only the `tag` parameter is touched
 * Covers post content, excerpts, and custom fields (with safe handling of serialized
   data)
 * Full rollback log per replacement batch
 * No external API calls, no tracking, no telemetry

### Disclaimer

This plugin is an independent tool and is not affiliated with, endorsed by, or sponsored
by Amazon. Amazon and Amazon Associates are trademarks of Amazon.com, Inc. or its
affiliates.

## Installation

 1. Upload the `mushdev-tag-replacer-for-amazon-associates` folder to `/wp-content/
    plugins/`, or upload the zip via Plugins > Add New > Upload Plugin.
 2. Activate the plugin through the “Plugins” screen in WordPress.
 3. Go to Tools > Amazon Tag Replacer.
 4. On the Settings tab, enter your Old Amazon Tag, New Amazon Tag, choose domains 
    and content types, and save.
 5. On the Scan & Replace tab, click “Scan / Preview Changes” to review what will change.
 6. Take a database backup, then click “Replace All” to apply the changes.

## FAQ

### Will this modify my ASIN or product URL?

No. Only the `tag` query parameter is modified. Everything else in the URL is left
exactly as it was.

### Can I undo a replacement?

Yes. Go to the History & Rollback tab and click “Rollback” next to a completed replacement
batch. Rows that were edited by someone/something else since the replacement are
skipped automatically, to avoid overwriting newer content.

### Does this call any external APIs?

No. All processing happens locally against your WordPress database.

### Which links are detected?

Absolute `http://` and `https://` links on the Amazon domains you select (and any
subdomain of them, such as `smile.amazon.com`). Short links such as `amzn.to` cannot
carry a tag parameter and are not modified. URLs whose slashes are JSON-escaped (`
https:\/\/`) inside block attributes are not detected.

### Does it work with query separators written as & or &?

Yes. The separator style already used in each link is preserved.

### Is custom field data safe?

Serialized values are never search-and-replaced as text. They are unserialized without
instantiating any objects, only string values are changed, and the result is re-
serialized. Values that cannot be safely unserialized are skipped.

### Does the rollback log use a lot of space?

Each changed field stores its original and modified value so it can be restored.
Deleting the plugin removes its tables and settings.

### Does this plugin work with multisite?

Yes. Settings and history are kept per site, and everything is removed from every
site when the plugin is deleted.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“MushDev Tag Replacer for Amazon Associates” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ mushdev ](https://profiles.wordpress.org/mushdev/)

[Translate “MushDev Tag Replacer for Amazon Associates” into your language.](https://translate.wordpress.org/projects/wp-plugins/mushdev-tag-replacer-for-amazon-associates)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mushdev-tag-replacer-for-amazon-associates/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mushdev-tag-replacer-for-amazon-associates/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mushdev-tag-replacer-for-amazon-associates/)
by [RSS](https://plugins.trac.wordpress.org/log/mushdev-tag-replacer-for-amazon-associates/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **18 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [affiliate](https://wordpress.org/plugins/tags/affiliate/)[amazon](https://wordpress.org/plugins/tags/amazon/)
   [associates](https://wordpress.org/plugins/tags/associates/)
 *  [Advanced View](https://wordpress.org/plugins/mushdev-tag-replacer-for-amazon-associates/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/mushdev-tag-replacer-for-amazon-associates/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mushdev-tag-replacer-for-amazon-associates/reviews/)

## Contributors

 *   [ mushdev ](https://profiles.wordpress.org/mushdev/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/mushdev-tag-replacer-for-amazon-associates/)