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:
    • “Original String” (e.g., Hello)
    • “Replacement String” (e.g., Bonjour)
  2. Save your changes.
  3. 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

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录