WP Manifestindependent plugin directory
manifest / media / webp-sibling-replacer

WebP 同目录替换器 releasesself-updates

扫描文章正文和特色图;当同目录存在 WebP 文件时,可一键改用 WebP,并列出可人工删除的原 PNG/JPG 文件。

by Codex · github.com/maomomo-eth/webp-sibling-replacer

0stars
4release downloads
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/maomomo-eth/webp-sibling-replacer/releases/download/v1.0.4/webp-sibling-replacer.zip

Ships its own WordPress updater (Plugin Update Checker), so new versions show up under Dashboard → Updates.

扫描文章正文和特色图。如果原 PNG、JPG 或 JPEG 同目录下有同名 WebP 文件,即可在后台一键改用 WebP。

使用方法

  1. webp-sibling-replacer 上传至 /wp-content/plugins/ 并启用。
  2. 打开“工具 → WebP 同目录替换器”。
  3. 勾选需要处理的项目后点击“替换所选项目”。

可勾选“替换成功后,同时删除所选原图”。若同一个原图还有未勾选的扫描引用,插件会保留文件以避免断图。

工具页还会列出正文图片和特色图中的失效引用:上传目录本地文件缺失,以及外链图片返回 4xx/5xx 或请求失败的情况。

扫描通过后台 AJAX 分批进行,每批处理 5 篇文章,避免大量文章或外链检查阻塞后台页面。

插件内置 GitHub Release 更新检查器。插件列表会提供“检查更新”,发现新版本后可直接使用 WordPress 原生的“立即更新”按钮安装。

注意事项

  • 仅处理 WordPress 上传目录中的本地图片。
  • 支持文章和页面的正文 img src 与特色图。
  • 特色图的 WebP 若尚未在媒体库登记,插件会登记该既有文件并生成附件元数据。

Releases

5 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.4 latest
Aug 4, 2026 1mo ago
webp-sibling-replacer.zip
1
Aug 4, 2026 1mo ago
webp-sibling-replacer.zip
1
Aug 4, 2026 1mo ago
webp-sibling-replacer.zip
1
Aug 4, 2026 1mo ago
webp-sibling-replacer.zip
0
Aug 4, 2026 1mo ago
webp-sibling-replacer.zip
1