[WordPress] 外掛分享: Kodlo Media Replace

首頁 › 外掛目錄 › Kodlo Media Replace
WordPress 外掛 Kodlo Media Replace 的封面圖片
全新外掛
安裝啟用
—
尚無評分
4 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-10-10

內容簡介

Kodlo Media Replace 外掛允許用戶輕鬆替換媒體庫中的檔案,而不會破壞任何現有的連結。無論是產品照片、PDF 價格表或是修正的標誌,替換後的檔案會立即在所有使用該檔案的頁面上顯示新版本。

【主要功能】
• 替換檔案而不改變附件 ID 和 URL
• 自動重建所有圖像尺寸
• 支援多種檔案類型(圖片、PDF、音視頻等)
• 自動清除頁面快取
• 可選擇連接 Cloudflare API 清除快取

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Kodlo Media Replace」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Need to swap a product photo, an updated PDF price list or a corrected logo without breaking a single link? Kodlo Media Replace overwrites the file of an existing attachment and keeps everything else exactly as it was:

the attachment ID,
the file name,
the URL, including every thumbnail URL.

Pages, products, galleries and page builders that use the file show the new version right away. There is nothing to search and replace.
How it works
Open a file in the Media Library, click Replace file, choose the new file and confirm. That’s it.
What happens behind the scenes

All image sizes are rebuilt with the same function WordPress runs for a new upload.
Old thumbnail URLs keep working. When the new image has different proportions, thumbnail file names would normally change. The plugin recreates the old ones from the new image at their old dimensions, so URLs hard-coded in posts or page builders never return a 404 error.
Large and rotated photos keep their URL (the “-scaled” and “-rotated” files WordPress creates).
WebP and AVIF copies made by optimization plugins (photo.jpg.webp, photo.webp) are regenerated, so rewrite rules don’t keep serving the old picture.
Browser and CDN caches: on the front end, every URL of a replaced file gets a version parameter (?kmr=…), so visitors download the new file immediately, even if the old one was cached for a year.
Page caches are cleared automatically when one of these is active: WP Rocket, W3 Total Cache, LiteSpeed Cache, WP Super Cache, WP Fastest Cache, SiteGround Optimizer, WP-Optimize, Breeze, Hummingbird, Cache Enabler, Nginx Helper, WP Engine, Kinsta, Pantheon.
Cloudflare (optional): the replaced file URLs can be purged from the Cloudflare edge. See the FAQ.

Simple by design
No settings page, no ads, no tracking. Works with images, PDF files, video, audio and documents.
The new file must have the same type as the old one (JPG for JPG, PDF for PDF), otherwise the URL would have to change.
External services
This plugin can connect to the Cloudflare API to remove replaced files from the Cloudflare cache. It is off by default and only works after you add a Cloudflare zone ID and API token to wp-config.php (see the FAQ).
When it is enabled, each time you replace a file the plugin sends a request to api.cloudflare.com with your zone ID, your API token and the URLs of the replaced file and its thumbnails (or a “purge everything” request if you enabled that option). No other data is sent.
This service is provided by Cloudflare, Inc.: Terms of Service, Privacy Policy.

延伸相關外掛

文章
Filter
Mastodon