[WordPress] 外掛分享: String Replacer

首頁外掛目錄 › String Replacer
WordPress 外掛 String Replacer 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
125 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v1.4.3 上架:2025-06-20

內容簡介

總結:String Replacer 是一個 WordPress 外掛,讓您可以在網站上定義一對字串進行搜尋和取代,包括內容、文章標題、頁腳文字以及發送郵件等功能。它能立即生效,並包含一個簡單的管理介面來管理取代。

1. 這個 WordPress 外掛的名稱是什麼?
- String Replacer

2. String Replacer 讓使用者可以在哪些範圍進行字串的取代?
- 文章標題
- 文章內容
- 網站全域輸出(例如頁腳、小工具等)
- 發送郵件(wp_mail())

3. 該外掛提供了怎樣的管理介面?
- 簡單的管理介面,包含新增/移除列、即時搜尋和分頁功能

4. 這個外掛除了郵件地址,還可以在哪裡進行工作?
- 在 mailto: 鏈結中進行工作

5. 這個外掛支援哪些多語言和品牌取代用例?
- 完全支援多語言和品牌取代用例

6. 這個外掛符合什麼規範並且是完全本地化的?
- 符合 WordPress 外掛指南規範,且是完全本地化的

7. 開發者可以如何應用這個外掛進行取代?
- 開發者可以使用 STRIRE_replace_strings( $text ) 在自定義的上下文中手動應用這些取代功能

8. 這個外掛是由誰製作的?
- 由 Ionut Baldazar 製作

9. 那位開發者的 GitHub 是什麼?
- https://github.com/baiatulutata

10. 這位作者的電子郵件是什麼?
- [email protected]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

In the admin screen, add one or more rows:

“Original String” (e.g., Hello)
“Replacement String” (e.g., Bonjour)

Save your changes.
The plugin will handle replacements in frontend output and emails automatically.

Examples

Replace [email protected][email protected]
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: [email protected]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon