[WordPress] 外掛分享: Enable Media Replace

WordPress 外掛 Enable Media Replace 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Enable Media Replace」是 2009-05-31 上架。
  • 目前有 600000 個安裝啟用數。
  • 上一次更新是 2025-03-25,距離現在已有 40 天。
  • 外掛最低要求 WordPress 4.9.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 297 人給過評分。
  • 論壇上目前有 7 個提問,問題解答率 57%

外掛協作開發者

shortpixel |

外掛標籤

replace | replace jpg | change media | replace image | remove background |

內容簡介

這是一個免費、輕量且易用的外掛程式,使您可以輕鬆地透過上傳新檔案來無縫地取代媒體庫中的圖像或檔案,不再需要刪除、重新命名和重新上傳檔案!
新的 beta 功能!現在您可以移除圖像的背景,以更好地與電子商務解決方案整合!
由製作 ShortPixel 的友好團隊支援 🙂

真正的時間節省器

您是否覺得每次想要更新 WordPress 媒體庫中的圖像或其他上傳的檔案時,都需要先刪除該檔案,然後再上傳一個完全相同的新檔案,是一件繁瑣且複雜的工作?

現在不用了!

現在您可以在編輯媒體檔案時直接取代任何已上傳的檔案。取代媒體可以用兩種方式進行:

取代檔案很簡單

簡單地取代檔案。此選項要求您上傳一個與欲替換的檔案類型相同的檔案。附件名稱仍保持相同,不論您上傳的檔案名稱為何。
替換檔案,使用新檔案名稱,並更新所有連結。如果您勾選此選項,舊檔案將被以您上傳的檔案名稱和類型替換。所有指向當前檔案的連結都會更新,指向新的檔案名稱。取代螢幕還提供了其他選項,例如將新檔案放入的資料夾或新檔案的日期。

這個外掛程式非常強大,是所有用 WordPress 建立的主要網站都必備的工具。它還提供替代圖像預覽!

新的 beta 功能:現在您可以移除任何圖像的背景!

與取代媒體的方式類似,您還可以從媒體庫中移除圖像的背景!背景移除功能會將圖像傳送到 ShortPixel 的 API,移除背景,然後在預覽窗格中將它們傳送回來。如果一切正常,只需使用已移除背景的圖像取代原始圖像!如果來源圖像是 PNG 檔案,您會得到一個透明的背景,而其他圖像則默認為純白色的背景。您還可以使用內嵌色彩選取器選擇不同的顏色。
背景移除功能仍處於 beta 階段,並且在合理使用情況下免費。

顯示檔案修改時間

有一個短代碼可以取得檔案修改日期,並在文章或頁面中顯示它。代碼為:
[file_modified id=XX format=XXXX],其中「id」是必需的,「format」是可選的,預設為 WordPress 目前設定的日期和時間格式。

因此,[file_modified id=870] 會顯示您網站上 ID 為 870 的檔案上次更新的時間。要獲取檔案的 ID,請在媒體庫中編輯檔案時檢查 URL(請參閱截圖#4)

如果您想更精確地控制顯示時間的格式,可以使用 format 選項。因此,[file_modified id=870 format=Y-m-d] 會顯示檔案修改的日期,但不顯示時間。格式字串使用 標準的 PHP date() 格式標籤。

ShortPixel 的其他外掛程式:

ShortPixel 圖像最佳化程式 - 針對網站上的所有圖像進行最佳化和壓縮,包括 WebP 和 AVIF 交付
ShortPixel 自適應圖像 -根據訪問者的螢幕大小和裝置進行即時圖像最佳化和壓縮

原文外掛簡介

A free, lightweight and easy to use plugin that allows you to seamlessly replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files! Now fully compatible with WP Offload Media!
New beta feature! You can now remove the background of your images for better integration with eCommerce solutions!
Supported by the friendly team that created ShortPixel 🙂
A real timesaver
Don’t you find it tedious and complicated to first delete a file and then upload another one with the exact same name every time you want to update an image or other uploaded file in the WordPress media library?
Well, no longer!
Now you can replace any uploaded file in the Edit Media view, where it should be. Replacing Media can be done in two ways:
It’s simple to replace a file

Simply replace the file. This option requires you to upload a file of the same type as the file you want to replace. The attachment name remains the same regardless of what the file you upload is called.
Replace the file, use the new file name, and update all links. If you check this option, the old file will be replaced with the name and type of the file you are uploading. All links pointing to the current file will be updated to point to the new file name. Additional options for the folder to put the new file in or the date of the new file are also available on the replace screen.

This plugin is very powerful and a must-have for all major websites built with WordPress. It also offers a preview of the replaced image!
New beta feature: You can now remove the background of any image!
Similar to replacing media, you can also remove the background of the images from the Media Library! The background removal feature sends the images to ShortPixel’s API, removes the background and sends them back in a preview window. If everything looks good, just replace the image with the one that has the background removed! If the source image is a PNG file, you will get a transparent background, while the other images default to a solid white background. You also have the option to choose a different color with an embedded color picker.
The background removal feature is still in beta and will be free of charge for a reasonable usage.
If you don’t want to use the background removal feature, add this line to your theme’s functions.php file, or use a plugin like Code Snippets:
`add_filter( 'emr/feature/background', '__return_false' );```

A similar filter, for the remote notification system is:
`add_filter( 'emr/feature/remote_notice', '__return_false' );```

To shorten the wait time before redirecting to the media editing screen, use the following filter and specify the wait time in seconds (0 means that redirection is immediate, but may cause problems in certain configurations):
`add_filter('emr/success/timeout', function () { return 3; });```

Show file modification time
There is a shortcode that takes the file modification date and displays it in a post or on a page. The code is:
[file_modified id=XX format=XXXX] where the “id” is required and the “format” is optional and defaults to your current WordPress settings for date and time format.
So [file_modified id=870] would show the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot )
If you want more control over the format in which the time is shown, you can use the format option. So [file_modified id=870 format=Y-m-d] would show the date the file was modified but not the time. The format string uses the standard PHP date() formatting tags.
Other plugins by ShortPixel:

FastPixel Caching – WP Optimization made easy
ShortPixel Image Optimizer – Image optimization & compression for all the images on your website, including WebP & AVIF delivery
ShortPixel Adaptive Images – On-the-fly image optimization & CDN delivery
Resize Image After Upload – Automatically resize each uploaded image
reGenerate Thumbnails Advanced – Easily regenerate thumbnails
WP SVG Images – Secure upload of SVG files to Media Library

Get in touch!

Email https://shortpixel.com/contact
Twitter https://twitter.com/shortpixel
Facebook https://www.facebook.com/ShortPixel
LinkedIn https://www.linkedin.com/company/shortpixel

Wishlist / Coming attractions
Do you have suggestions? Feel free to contact ShortPixel here
Contribute
Want to help us improve the plugin feel free to submit PRs via GitHub here.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Enable Media Replace」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 3.0 | 3.1 | 3.2 | 1.4.1 | 2.0.1 | 2.4.1 | 2.5.1 | 2.5.2 | 2.8.1 | 2.8.2 | 2.9.1 | 2.9.2 | 2.9.3 | 2.9.4 | 2.9.5 | 2.9.6 | 3.0.1 | 3.0.2 | 3.0.3 | 3.0.4 | 3.0.5 | 3.0.6 | 3.1.1 | 3.2.1 | 3.2.2 | 3.2.3 | 3.2.4 | 3.2.5 | 3.2.6 | 3.2.7 | 3.2.8 | 3.2.9 | 3.3.0 | 3.3.1 | 3.3.2 | 3.3.3 | 3.3.4 | 3.3.5 | 3.3.6 | 3.3.7 | 3.3.8 | 3.3.9 | 3.4.0 | 3.4.1 | 3.4.2 | 3.5.0 | 3.6.0 | 3.6.1 | 3.6.2 | 3.6.3 | 4.0.0 | 4.0.1 | 4.0.2 | 4.0.3 | 4.1.0 | 4.1.1 | 4.1.2 | 4.1.3 | 4.1.4 | 4.1.5 | 4.1.6 | trunk | 3.3.10 | 3.3.11 | 3.3.12 |

延伸相關外掛(你可能也想知道)

  • Yatterukun 》一個快速且易於使用的圖片/影片媒體變更外掛程式。, 監聽在您的特定頁面 URL 上進行的 HTTP POST 上傳,, 並且直接替換目標媒體檔案,無需進入 wp-admin。, ...。

文章
Filter
Apply Filters
Mastodon