Skip to content

Replace a file – the address stays

Media Replace

Media Replace replaces an image or file and keeps the name and address, so the pages that use it show the new one at once. Pro keeps every earlier version and can replace a file at a set time – and back afterwards.

  • Free to use
  • Works fully without Pro
  • Prowhen you want more

In WordPress the plugin is called Datoden Media Replace – in the DT-addons menu it is listed as DT-media-replace.

Replace a file – same addressA file in the media library replaced with a new version, earlier versions that can be restored and a scheduled replacement.PDFpricelist.pdfVersion 4 · 1.2 MB/uploads/prislista.pdfReplace fileSame addressLinks, pages and search enginespoint to the new file at once.Earlier versionsProVersion 3 · 14 Sep1,1 MBRestoreVersion 2 · 2 Jun1,0 MBRestoreScheduled: Christmas prices 1 Dec 00:00 – back on 7 JanPro
Replace a file and keep the address – Pro keeps earlier versions and swaps files in at a chosen time.

How Media Replace works

DT-media-replace adds Replace file to images and files in the media library. The new file goes in the same folder, with the same name and the same address, so pages, posts, slideshows and menus that use it show the new one at once. Title, alt text, caption and description are left as they are.

Replace file in three places

The Replace file box is on the image's own page (Media → the image), in the media window (Replace file… in the details) and in the list view (Replace file under the name). Choose a new file or drag it there, with a progress bar while it uploads.

Sizes are made again

All sizes are made again from the new image. If the new image has other proportions or is smaller, the old sizes are made again under their old names, so images already placed in pages keep working.

PNG becomes JPG and the other way round

A PNG, WebP or GIF that replaces a JPG is converted to JPG (and the other way round), so the file name can stay the same. Other files must be the same type – a PDF is replaced with a PDF.

Undo the last replacement

The file from before the last replacement is kept in a protected folder and can be brought back with Undo last replacement in the box.

The new file shows at once

Image addresses get a version number (?v=…) after a replacement, so browsers and image services fetch the new file. The page cache is emptied in WP Fastest Cache, WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed and SiteGround.

Earlier versions Pro

Before every replacement the file in use is kept – the ten latest per file – with date, size and a small preview. The Earlier versions list sits in the Replace file box, and Restore brings a version back. The file being replaced is kept in turn, so nothing is lost.

Schedule a replacement Pro

Under Schedule a replacement you choose the new file now and when it should go in. You can also set when it goes back to the earlier file, for example after a campaign. The replacement happens at the first visit to the website after the chosen time.

Overview of scheduled replacements Pro

On the settings page, the Earlier versions and scheduled replacements card shows how many files have earlier versions and which replacements are scheduled, with a link to each file.

What it looks like

Everything without a Pro label works for free. What is marked Pro is included in the Pro version.

The Replace file boxThe image sommar-hero.jpg in the media library with the Replace file box: an area where the new file is chosen or dragged, the steps Uploading and Creating the sizes, and the message that the file has been replaced with the link Undo last replacement.Replace filesommar-hero.jpg1920 × 1080 · 486 KB/uploads/2026/06/sommar-hero.jpgChoose a new fileor drag it hereUploading…1,9 MBCreating the sizes…7 sizesAlso in the media window and list viewDone – the file has been replaced.The name and address are the same.Undo last replacement
Replace file is on the image page, in the media window and in the list view – choose or drag the new file there, and undo if needed.
Sizes are made againA PNG file that replaces hero.jpg is converted to JPG with the same name, and a list of the image sizes that were made again, where an old size is kept under its old name.Sizes are made againNew filehost-2026.pngPNG · 2400 × 1350hero.jpgConverted to JPG – same nameSizesFrom the new imagehero-150x150.jpg150 × 150hero-300x169.jpg300 × 169hero-1024x576.jpg1024 × 576hero-300x200.jpg300 × 200Old name keptThe addresses get ?v=… so browsers fetch the new file · the page cache is emptied
Every size is made again from the new image – a PNG becomes a JPG so the name stays the same, and old sizes are kept.
Schedule a replacementThe image erbjudande.jpg with the form Schedule a replacement: new file julkampanj-2026.jpg, replaced on 1 December 2026 and back on 7 January 2027, the button Schedule and the message that the replacement is scheduled.Schedule a replacementProChoose the new file now – it replaces this one at the time you choose.erbjudande.jpg1600 × 900 · 312 KBIn use nowNew filejulkampanj-2026.jpgReplace on2026-12-01 00:00Go back on (optional)2027-01-07 00:00ScheduleScheduled. It happens at the first visit to the website after the time.
Schedule a replacement – with Pro you choose the new file now, when it goes in and when it goes back.
Settings and scheduled replacementsThe settings page for DT-media-replace with five switches under Replacing, and the card Earlier versions and scheduled replacements with 38 files that have earlier versions and two scheduled replacements.DT-media-replaceReplacingHow a replacement is made.Keep old addresses workingConvert to the type of the old fileMake undo possibleShow the new file at onceEmpty the page cacheEarlier versionsand scheduledreplacements38Profiles have earlierversions.Scheduledpricelist.pdfReplaced 1 Dec 2026erbjudande.jpgBack 7 Jan 2027
Choose how a replacement is made – with Pro every file with earlier versions and every scheduled replacement is in one place.

Get started

After installing – how to set up Media Replace.

  1. Check the settings

    Go to DT-addons → DT-media-replace. Under Replacing, turn Keep old addresses working, Convert to the type of the old file, Make undo possible, Show the new file at once and Empty the page cache on or off – changes save by themselves.

  2. Open the file to replace

    Go to Media and click the image or file. In the list view you can also click Replace file under the name.

  3. Choose the new file

    Choose a new file under Replace file, or drag it there. When it says Done, pages that use the file show the new one.

  4. Schedule or restore (Pro)

    The same box has Earlier versions with Restore, and Schedule a replacement for a set date and time.

Free and Pro

Pro builds on the free version – it stays as the base, with all your settings, and Pro adds the rest.

Free

  • Replace an image or file – name and address stay
  • Sizes are made again, old addresses keep working
  • PNG becomes JPG and the other way round
  • Undo the last replacement
  • The cache is emptied and the new image shows at once

Media Replace Pro

Everything in the free version, plus:

  • Earlier versions – the ten latest per file, with a preview
  • Restore an earlier version with one click
  • Schedule a replacement for a set date and time
  • Back to the earlier file by itself, e.g. after a campaign
  • Overview of scheduled replacements

Prices

Choose how many websites and how you want to buy. Prices exclude VAT – VAT is calculated at checkout.

Number of websites
One plugin €5€9€29one-off
  • Yours forever
  • Every update in the major version (e.g. 1.x)
  • A discount on the next major version
Recommended Subscription €8€17€25per month €99€199€299 per year – billed yearly €13€25€43per month
  • Every Pro plugin – new ones included as they arrive
  • Always the latest version, new major versions included
  • Plus Website Guard Pro: safe updates
  • Cancel any time
All Pro plugins €109€219€469one-off
  • Every plugin in one purchase – the most for your money
  • Plus Website Guard Pro: safe updates
  • Yours forever
  • Every update in the major version

* Up to 100 websites. Datoden may end a subscription and then refunds the remaining part of the paid period.

You sign in to your Datoden account (or create one for free) and pay securely at Stripe by card. Receipt and invoice are emailed right away.

Buy and install Pro

The licence follows your Datoden account – no key to paste.

  1. Buy

    The purchase is saved on your Datoden account as soon as the payment has gone through.

  2. Download

    Get the Pro plugin under My account → My purchases → Licences.

  3. Install

    Drop the zip file on Website Guard. Pro is added on top of the free version – everything you have done stays.

  4. Connect

    Connect the website in Website Guard. The Pro updates then arrive as ordinary WordPress updates.

Frequently asked questions

Do I have to change anything on my pages after a replacement?

No. The new file gets the same folder, name and address as the old one, so pages, posts and menus that use it show the new file at once.

Can I replace a file with a different type?

Images can be converted: a PNG, WebP or GIF that replaces a JPG becomes a JPG, as long as the server can convert images. Other files must be the same type.

Where is the old file kept?

In wp-content/uploads/dt-replace-media-backup/, which cannot be opened from the web. The free version keeps the file from before the last replacement; Pro keeps the ten latest versions per file.

When exactly does a scheduled replacement happen?

It runs through the WordPress scheduler, at the first visit to the website after the chosen time. A file can have one schedule at a time.

Are the alt text and caption lost?

No. Title, alt text, caption and description stay as they are.

What happens when a licence runs out?

Nothing stops working. A purchase never runs out, and when a subscription ends the plugins keep every function – only the updates from Datoden stop.

What is a major version?

The first number in the version. A purchase includes every update in that major version, for example all 1.x versions. A new major version (2.0) comes about once a year with clearly new features and comes at a discount as an upgrade. A subscription always includes it.

How are websites counted?

Websites connected to your Datoden account with a Pro plugin switched on, in the order they were connected. Disconnect a website in My websites to move the licence to another.

Do I need a licence key?

No. The website is connected to your Datoden account with Website Guard, and Datoden knows which updates your licences include.

Can I go back to the free version?

Yes. Deactivate Pro – the free version keeps running with the same settings. Functions that only exist in Pro stop, but nothing is deleted.

Do I keep the free version?

Yes. Pro is an add-on: the free version stays installed and active as the base and is updated from WordPress.org as usual, and Pro adds the Pro features on top. On WordPress.org the free versions are called Datoden …, for example Datoden Media Replace.

Is VAT included?

Prices exclude VAT. VAT is calculated at checkout from your country. Companies in other EU countries can enter their VAT number.

Already bought?

Your licences, websites and downloads are under My account → My purchases → Licences.