Title: Replace External Images
Author: Hans &amp; Friends
Published: <strong>2025 年 7 月 21 日</strong>
Last modified: 2026 年 2 月 13 日

---

搜索插件

![](https://ps.w.org/replace-external-images/assets/banner-772x250.png?rev=3331060)

![](https://ps.w.org/replace-external-images/assets/icon-256x256.png?rev=3331060)

# Replace External Images

 作者：[Hans & Friends](https://profiles.wordpress.org/hansandfriends/)

[下载](https://downloads.wordpress.org/plugin/replace-external-images.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/replace-external-images/#description)
 * [评价](https://cn.wordpress.org/plugins/replace-external-images/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/replace-external-images/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/replace-external-images/#developers)

 [支持](https://wordpress.org/support/plugin/replace-external-images/)

## 描述

“Replace External Images” lets you import externally hosted images used in post 
content directly into your WordPress media library — either one by one or now with
the new bulk import feature across multiple posts at once.

The plugin automatically replaces external URLs in the content with local media 
URLs, shows a live progress view, supports any image host, and updates featured 
images where needed.

Ideal for:
 – site migrations – pasted content from other sources – cleaning up 
hotlinked images – processing many posts in one go with the bulk importer

Full documentation available here: [Replace External Images Docs](https://hansandfriends.de/docs/replace-external-images/)

## 屏幕截图

 * [[
 * A post with an externally hosted image. The “Replace External Images” panel appears
   in the editor sidebar. One click imports the image into the media library and
   updates the post to use the local version.
 * [[
 * Successful import confirmation with summary and return link.
 * [[
 * Works in both Classic Editor and Gutenberg, including multi-image posts.
 * [[
 * Respecting protected content — import fails cleanly for non-image or restricted
   resources.
 * [[

## 安装

 1. Go to your WordPress dashboard.
 2. Navigate to “Plugins > Add New”.
 3. Search for “Replace External Images”.
 4. Click “Install Now” and then “Activate”.

Alternatively:

 1. Download the plugin as a ZIP file.
 2. Go to “Plugins > Add New > Upload Plugin”.
 3. Select the ZIP file, click “Install Now”, then “Activate”.

Once activated:

 * Open a post that contains externally linked images.
 * Click “Replace External Images” in the Tools section.
 * Watch the live progress bar and wait for completion.

## 常见问题

### Does it overwrite existing media?

No — it only imports external images and skips media already in the library.

### What happens to the image URLs?

They are updated to local media paths after import.

### Can I undo the import?

Not automatically. Please make a backup before running the importer if you need 
to restore content later.

### What happens with protected or blocked images?

Some image sources actively block hotlinking or automated downloads by returning
a different content type (e.g. `text/plain` instead of `image/jpeg`).
 This plugin
detects such cases and skips the import gracefully — no image is saved, and the 
log explains why.

### What if the post doesn’t have a featured image?

If a post has no featured image, the plugin will automatically set the **first successfully
imported image** as the featured image.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Replace External Images」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Hans & Friends ](https://profiles.wordpress.org/hansandfriends/)

[帮助将「Replace External Images」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/replace-external-images)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/replace-external-images/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/replace-external-images/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/replace-external-images/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/replace-external-images/)。

## 更新日志

#### 1.2.0

 * Improved prefix consistency across AJAX, JS globals, script handles, and importer
   internals
 * Hardened nonce and request sanitization in admin and AJAX flows
 * Improved download handling and clearer logging for blocked sources (e.g. HTTP
   403 responses)
 * Improved post-type aware back navigation after single and bulk imports

#### 1.1.0

 * NEW: Bulk import for external images across multiple posts

#### 1.0.0

 * Initial public release
 * Live importer for external images
 * Works on individual post basis
 * Tested up to WordPress 6.8.1 and PHP 8.2

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/replace-external-images/)
 * 标签
 * [external images](https://cn.wordpress.org/plugins/tags/external-images/)[hotlinking](https://cn.wordpress.org/plugins/tags/hotlinking/)
   [images](https://cn.wordpress.org/plugins/tags/images/)[import](https://cn.wordpress.org/plugins/tags/import/)
   [media](https://cn.wordpress.org/plugins/tags/media/)
 *  [高级视图](https://cn.wordpress.org/plugins/replace-external-images/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/replace-external-images/reviews/)

## 贡献者

 *   [ Hans & Friends ](https://profiles.wordpress.org/hansandfriends/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/replace-external-images/)