Media Switcheroo

Media Switcheroo

Details
View on WordPress

Media Switcheroo is a WordPress plugin for replacing files already stored in the Media Library without changing the attachment ID or existing media URL.

It is designed for common maintenance tasks such as replacing an updated image, PDF, document, download, or other WordPress-supported attachment while keeping existing references intact.

Features

  • Replace Media Library files in place.
  • Preserve the attachment ID and existing URL.
  • Preserve title, alt text, caption, description, and attachment relationships.
  • Support images, PDFs, documents, and other WordPress-supported media types.
  • Require the same file extension to avoid breaking existing links.
  • Regenerate image sizes and attachment metadata after replacement.
  • Regenerate supported PDF preview metadata through WordPress core.
  • Clear the cached data WordPress holds for the replaced file.
  • Purge supported cache and optimization plugins when detected.
  • Purge supported hosting caches when detected.
  • Clear Elementor generated-file cache when available.
  • Add a version value to media URLs on the public site after replacement to help defeat stale browser and CDN caches.
  • Add Replace File actions directly to Media Library workflows.
  • Check replacement files before they are installed, and restore the original if anything goes wrong.
  • Responsive WordPress admin interface.
  • No external service or tracking required.

Who can use it

Users who can upload files and edit the media item (or manage the site) can replace it. Replacement files are checked against the file types your site already allows.

Details

Plugin code:
media-switcheroo
Plugin version:
1.0.0
Outdated:
No
WP version:
6.8 or higher
PHP version:
8.0 or higher
Test up to WP version:
7.1.4
Total installations:
0
Last updated:
2026-11-06
Rating:
Times rated:
0
cache-clear
media-library
media-replace
replace-image
replace-pdf