Title: Replacely – Bulk Content Find &amp; Replace by URLs
Author: Ankur Patel
Published: <strong>2026 年 5 月 28 日</strong>
Last modified: 2026 年 5 月 28 日

---

搜索插件

![](https://ps.w.org/replacely/assets/banner-772x250.png?rev=3551703)

![](https://ps.w.org/replacely/assets/icon.svg?rev=3551703)

# Replacely – Bulk Content Find & Replace by URLs

 作者：[Ankur Patel](https://profiles.wordpress.org/ankur2194/)

[下载](https://downloads.wordpress.org/plugin/replacely.1.0.4.zip)

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

 [支持](https://wordpress.org/support/plugin/replacely/)

## 描述

**Replacely** is an administration tool that lets WordPress site owners and developers
safely find and replace exact text inside post, page, custom-post-type, and Elementor
content across a curated list of URLs or paths.

Unlike search-and-replace tools that scan the whole database blindly, this plugin
operates surgically: you provide the list of URLs you want to touch, the exact text
to find, and the exact text to replace it with. Nothing else is modified.

#### Highlights

 * Exact, case-sensitive matching. No regex surprises.
 * Accept full URLs (e.g. `https://example.com/sample-page/`) and relative paths(
   e.g. `/sample-page/`).
 * Detect target post automatically via `url_to_postid()`, supporting any registered
   post type.
 * Elementor-aware: also replaces text inside Elementor page content (`_elementor_data`)
   and refreshes Elementor’s CSS cache afterward.
 * **Dry Run** mode shows what _would_ change before any database write.
 * Results dashboard with summary tiles, detailed table, status colors, dashicons,
   and replacement counts split by source (classic content vs. Elementor).
 * One-click **CSV export** and **Copy results** to clipboard.
 * Persistent **activity log** of every live replacement (page, post type, replacement
   count, user, timestamp, View/Edit links). Keeps the 200 most recent updates and
   can be cleared anytime. Dry runs are never logged.
 * Hardened security: capability checks, nonces, sanitisation, escaping, direct-
   access protection.
 * Skips revisions, auto-drafts, and trashed posts. Duplicate URLs are processed
   only once.
 * Clean uninstall: deleting the plugin removes all of its data (activity-log option
   and per-user transients) from the database, multisite-aware. Your content changes
   are kept.
 * Translation-ready.

#### Built for reliability

 * Object-oriented architecture with namespaced classes.
 * Modular file structure: bootstrap, plugin container, admin page, replacer service,
   helper utilities.
 * Polished, responsive admin UI that complements the native WordPress design language.

## 安装

 1. Upload the `replacely` folder to `/wp-content/plugins/`, or install the ZIP via**
    Plugins  Add New  Upload Plugin**.
 2. Activate the plugin from the **Plugins** screen.
 3. Navigate to **Tools  Replacely**.

## 常见问题

### Is matching case-sensitive?

Yes. Matching is exact and case-sensitive, so `Hello` and `hello` are not considered
the same.

### Can I use regular expressions?

No. By design, the plugin uses exact string replacement to avoid the typical foot-
guns of regex-based replacements on production data.

### Does it support custom post types?

Yes. Any post type whose permalink resolves through `url_to_postid()` is supported,
including CPTs registered by other plugins or themes.

### Does it work with Elementor?

Yes. Elementor stores its page content as JSON in the `_elementor_data` post meta
rather than in `post_content`, so the plugin searches and replaces inside that data
as well — decoding it, replacing the text safely, re-encoding it, and saving. After
a live run it regenerates Elementor’s cached CSS so the change appears on the front
end. Other page builders that keep content in their own storage are not covered.

### Will my revisions be modified?

No. Revisions, auto-drafts, and trashed posts are skipped.

### How do I undo a replacement?

There is no automatic undo. Always take a full database backup before running a 
live replacement, or use **Dry Run** first to verify the impact.

### Where are results stored?

The most recent results are stored in a short-lived per-user transient (15 minutes)
solely so the CSV export endpoint can stream them.

### What is the Activity Log?

A persistent, on-screen audit trail of every page changed by a live replacement.
Each entry records the page title, post ID, post type, resolved URL, replacement
count, the user who ran it, and the timestamp, with View and Edit links. It keeps
the 200 most recent updates (older entries are pruned automatically) and survives
across sessions. Dry-run previews are never logged, since nothing is written to 
the database. It is stored in a single capped option and can be emptied with **Clear
log** — clearing the log deletes only the log, not the underlying content changes.

### What happens to my data when I uninstall the plugin?

The plugin cleans up after itself. Deleting it from the **Plugins** screen removes
everything it stored in the database: the activity-log option and every per-user
results/state transient (on multisite, this runs for each site in the network). 
The actual content changes made to your posts are intentionally left in place, since
those are real edits to your site rather than plugin data.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Replacely – Bulk Content Find & Replace by URLs」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Ankur Patel ](https://profiles.wordpress.org/ankur2194/)

[帮助将「Replacely – Bulk Content Find & Replace by URLs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/replacely)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4

 * Renamed the plugin to “Replacely – Bulk Content Find & Replace by URLs” and standardized
   internal prefixes, namespace, and admin asset identifiers. No user-facing functional
   change.
 * Hardened the CSV export against spreadsheet formula injection.

#### 1.0.3

 * Added: replacement counts are now broken down by source — classic post content
   vs. Elementor content — across the results summary tiles, the results table, 
   the “pages updated” panel, the activity log, and the CSV export.

#### 1.0.2

 * Fixed: dashicons in the Copy Results, Export CSV, View, and Edit buttons are 
   now vertically centered with their button labels.

#### 1.0.1

 * Added: clean uninstall. Deleting the plugin now removes the activity-log option
   and all per-user results/state transients from the database (multisite-aware),
   leaving no plugin data behind. Content changes are preserved.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/replacely/)
 * 标签
 * [bulk edit](https://cn.wordpress.org/plugins/tags/bulk-edit/)[content](https://cn.wordpress.org/plugins/tags/content/)
   [find and replace](https://cn.wordpress.org/plugins/tags/find-and-replace/)[search replace](https://cn.wordpress.org/plugins/tags/search-replace/)
   [urls](https://cn.wordpress.org/plugins/tags/urls/)
 *  [高级视图](https://cn.wordpress.org/plugins/replacely/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/replacely/reviews/)

## 贡献者

 *   [ Ankur Patel ](https://profiles.wordpress.org/ankur2194/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/replacely/)