# Media Replace for WordPress

> Upload a new file over an existing media item. The ID and URL stay the same, so every link and embed keeps working. Part of Toggleworks, one plugin for the…

TW-COR-14 Core


Upload a new file over an existing media item. The ID and URL stay the same, so every link and embed keeps working.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Media Replace

**Part number**
: TW-COR-14
**Section**
: [Core](https://togglework.app/features/core/)
**Settings**
: Own screen
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Updating a PDF price list or a product photo normally means uploading a new file, then finding and changing every link to the old one. Replacing the file in place keeps the same ID and address, so every link and embed keeps working.

### What it does

- Uploads a new file over an existing media item.
- Keeps the same ID and URL.

![Media Replace settings screen in the Toggleworks WordPress plugin](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/core-media-replace.webp?v=1795524166)

The Media Replace screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Open the item in the Media Library and choose the replace option.

## How you use it

Switch Media Replace on in Toggleworks → Core and it adds its own screen to wp-admin, where you do the work. There are no settings to get wrong first.

## Good to know

- Browsers and CDNs may cache the old file for a while. Clear your CDN cache after replacing important files.

## Comes with 187 more parts

Media Replace is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 27 Core parts](https://togglework.app/features/core/)

### People also look for it as

- replace
- media
- image
- upload
- overwrite
- attachment

## Often switched on with it

- [Image Optimizer](https://togglework.app/features/performance/image-optimizer/) — TW-PRF-08 · Save uploaded JPEG and PNG images as WebP or AVIF, set the compression quality and downscale huge uploads. Uses your server's… · 5 settings
- [SVG Upload](https://togglework.app/features/core/svg-upload/) — TW-COR-24 · Let chosen roles upload SVG images. Every file is sanitized (scripts, event handlers and external references removed) before it… · 1 setting
- [Image Sizes](https://togglework.app/features/performance/image-sizes/) — TW-PRF-10 · Stop generating image sizes the site never uses. Each upload creates fewer files, saving disk space and upload time. · 2 settings
- [Search & Replace](https://togglework.app/features/core/search-replace/) — TW-COR-22 · Find and replace text across the database — for domain moves, HTTP→HTTPS or renamed content — with a dry run first and serialized… · Own screen in wp-admin
- [AI Alt Text](https://togglework.app/features/ai/alt-text/) — TW-AI-05 · Write descriptive alt text for images automatically on upload, with a one-click button in the media library and a bulk tool for… · 4 settings
- [AI Image Generator](https://togglework.app/features/ai/image-generator/) — TW-AI-13 · Generate featured images and illustrations from a sentence, or edit an image you already have (“remove the background”, “make it… · 7 settings

## Questions

**Is Media Replace included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Media Replace among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Media Replace slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Media Replace only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Media Replace before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/core/media-replace/
