Title: String Replacer
Author: BaiatuLuTata
Published: <strong>2025 年 6 月 21 日</strong>
Last modified: 2025 年 12 月 8 日

---

搜尋外掛

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

![](https://ps.w.org/string-replacer/assets/icon-256x256.png?rev=3313494)

# String Replacer

 由 [BaiatuLuTata](https://profiles.wordpress.org/baiatulutata/) 開發

[下載](https://downloads.wordpress.org/plugin/string-replacer.1.4.3.zip)

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

 [技術支援](https://wordpress.org/support/plugin/string-replacer/)

## 外掛說明

String Replacer lets you define pairs of strings to search and replace across your
WordPress site — including content, post titles, footer text, and outgoing emails.
It works instantly and includes a simple admin interface for managing replacements.

### Features

 * Replace strings in:
    - Post **titles**
    - Post **content**
    - Site-wide output (e.g., **footer**, **widgets**, etc.)
    - Outgoing **emails** (`wp_mail()`)
 * Simple **admin UI** with:
    - Add/remove rows
    - Live search
    - Pagination
 * Replaces email addresses and works inside `mailto:` links
 * **Preserves leading and trailing spaces** in replacement strings
 * Supports multilingual and branding replacement use cases
 * Fully local, compliant with WordPress plugin guidelines

### Usage

 1. In the admin screen, add one or more rows:
 2.  * “Original String” (e.g., `Hello`)
     * “Replacement String” (e.g., `Bonjour`)
 3. Save your changes.
 4. The plugin will handle replacements in frontend output and emails automatically.

### Examples

 * Replace `support@oldsite.com`  `help@newbrand.com`
 * Replace `Hello`  `Bonjour`
 * Replace `ACME Inc.`  `NewCorp`
 * Replace `"Hello "` (with a space)  `"Hi "` (space preserved)

### Filters & Extensibility

This plugin hooks into:
 – `the_title` and `the_content` – `template_redirect` output
buffering – `wp_mail` filter (subject, message, and headers)

Developers can use `STRIRE_replace_strings( $text )` to apply replacements manually
in custom contexts.

### Author

Created by **Ionut Baldazar**
 GitHub: https://github.com/baiatulutata Email: baiatulutata@woomag.
ro

## 螢幕擷圖

 * [[

## 安裝方式

 1. Upload the plugin to `/wp-content/plugins/`, or install via the WordPress Plugin
    Directory.
 2. Activate it via the ‘Plugins’ screen.
 3. Navigate to **Settings  String Replacer** to add your string pairs.

## 常見問題集

### Will it work with custom post types or WooCommerce?

Yes, any output that uses `the_title` or `the_content` filters, or appears in final
HTML output, will be processed. This includes many plugins.

### Will it replace strings in dynamic JavaScript or AJAX responses?

No, it only replaces visible strings rendered in HTML or passed through known filters.

## 使用者評論

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-17076/)󠁿

 [Brandon](https://profiles.wordpress.org/brandonkramer/) 2026 年 3 月 13 日

Exactly what I needed

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

### 󠀁[i made this plugin](https://wordpress.org/support/topic/i-made-this-plugin-2/)󠁿

 [BaiatuLuTata](https://profiles.wordpress.org/baiatulutata/) 2025 年 6 月 21 日
1 則留言

and it is absolutely awesome! you can take out unwanted links or change that weird
label that you don’t know where it is coming from

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

## 參與者及開發者

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

參與者

 *   [ BaiatuLuTata ](https://profiles.wordpress.org/baiatulutata/)

[將〈String Replacer〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/string-replacer)

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

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

## 變更記錄

#### 1.4.2

 * Added support for preserving leading/trailing whitespace in string replacements
 * Improved sanitization logic using `wp_unslash()`
 * Updated plugin description and feature list

#### 1.4.1

 * Changed contact information in readme files

#### 1.4

 * Various fixes to get the plugin approved in the directory

#### 1.3

 * Fixed Out of Date Libraries
 * Allowing Direct File Access to plugin files

#### 1.2

 * Added `wp_mail` support for replacing strings in emails
 * Added search, pagination, and better sanitization in the admin grid
 * Localized all scripts and removed CDN dependencies for WP.org compliance

## 中繼資料

 *  版本 **1.4.3**
 *  最後更新 **5 個月前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/string-replacer/)
 * 標籤:
 * [admin tool](https://tw.wordpress.org/plugins/tags/admin-tool/)[content filter](https://tw.wordpress.org/plugins/tags/content-filter/)
   [email filter](https://tw.wordpress.org/plugins/tags/email-filter/)[string replace](https://tw.wordpress.org/plugins/tags/string-replace/)
   [translation](https://tw.wordpress.org/plugins/tags/translation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/string-replacer/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

 *   [ BaiatuLuTata ](https://profiles.wordpress.org/baiatulutata/)

## 技術支援

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

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