Title: WP Media Replace
Author: Prakash Rao
Published: <strong>2019 年 4 月 29 日</strong>
Last modified: 2019 年 4 月 29 日

---

搜尋外掛

![](https://ps.w.org/wp-media-replace/assets/banner-772x250.png?rev=2076688)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/wp-media-replace/assets/icon-256x256.png?rev=2076671)

# WP Media Replace

 由 [Prakash Rao](https://profiles.wordpress.org/prakashrao/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-media-replace.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-media-replace/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-media-replace/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-media-replace/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-media-replace/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-media-replace/)

## 外掛說明

Many of the WordPress website users fetches the media image in featured image section
or content editor to be displayed at front-end. Now, the big headache is if we want
to change an image to some new image then we will have to change it in all the posts
types where this image has been used.

WP Media Replace solves this headache by managing everything smoothly.

A brief about the logics:

 * Goto to edit more section of a media item and in bottom you will find “Replace
   Media” section.
 * Upload and new image which will replace the exisiting image in this media item.
 * Suppose you are having an image named as “existing.png” and you want to replace
   it with “new.png”.
 * Upload “new.png” in “Replace Media” section and click on “Update”.
 * “existing.png” will be moved to “del” folder and “new.png” will be copied and
   renamed as “existing.png”.
 * Now, you will have to same images with different names “exising.png” and “new.
   png” to overcome this issue check the box to delete the “new.png” at the time
   of uploading it.

## 安裝方式

This section describes how to install the plugin and get it working.

e.g.

 1. Upload `wp-media-replace` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Check the Edit Media page to see the “Replace Media” section working.

## 常見問題集

  What happens to original image?

We keep a backup of original image, original image is moved to “del” folder.

  What about the the other sizes of the image, are they getting replaced?

Yes, if an image “existing.png” have 2 sizes or more as “existing-150X150.png” and“
existing-300X300.png” then these images will also be replaced with the new image
and names of the images will be kept same.

  What about the database changes, any modifications are done in synchronized image
metadatas?

No, overall logic is we are replacing an exsiting image with a new media image, 
we take the name of original image (all sizes) -> moves the original images to “
del” folder -> take the name of new image -> create a copy of new image and name
it as original image.

  What if my original image is having a “large” size and new image do not have “
large” size?

As wordpress default maintains 4 sizes of media images “thumbnail”, “medium”, “medium_large”&“
large”. Depending on the aspect ratio of image we uplad the different thumbnail 
versions are created. If original image is having “large” size but new image have
only “thumbnail”, “medium”, “medium_large” then “large” size for the new image will
be created by plugin and it will use the fulll size of the image.

## 使用者評論

![](https://secure.gravatar.com/avatar/32edbe91eba46f5a593c79a1562823d71a48188008e0e9e17b03ff5dc4f735f6?
s=60&d=retro&r=g)

### 󠀁[Reliable and Easy to Use](https://wordpress.org/support/topic/reliable-and-easy-to-use-12/)󠁿

 [clarkaline](https://profiles.wordpress.org/clarkaline/) 2019 年 4 月 30 日

Thank you for making a great plugin! It gets me out of some tough jams and is super
easy to use. Great Work!

![](https://secure.gravatar.com/avatar/de559f5379ae6b6cecb86abfe8394340ea76b56fd0cb41834aa93ea4d0b3070e?
s=60&d=retro&r=g)

### 󠀁[Great Work](https://wordpress.org/support/topic/great-work-712/)󠁿

 [Haresh Valiya](https://profiles.wordpress.org/haresh76/) 2019 年 4 月 30 日

I can easily replace my images without any changes in URLs. Works like a gem.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/wp-media-replace/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WP Media Replace〉的開發相關工作。

參與者

 *   [ Prakash Rao ](https://profiles.wordpress.org/prakashrao/)

[將〈WP Media Replace〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-media-replace)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-media-replace/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-media-replace/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-media-replace/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-media-replace/)。

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **7 年前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.1.23**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-media-replace/)
 * 標籤:
 * [attachment](https://tw.wordpress.org/plugins/tags/attachment/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [replace media](https://tw.wordpress.org/plugins/tags/replace-media/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-media-replace/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wp-media-replace/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wp-media-replace/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wp-media-replace/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wp-media-replace/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wp-media-replace/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-media-replace/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-media-replace/reviews/)

## 參與者

 *   [ Prakash Rao ](https://profiles.wordpress.org/prakashrao/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-media-replace/)