String Replacer

Àpèjúwe

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:
Ìtumọ̀ Yorùbá: – the_title and the_content
Ìtumọ̀ Yorùbá: – template_redirect output buffering
Ìtumọ̀ Yorùbá: – 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

Àwọn àwòrán ìbòjú

Ìgbéwọlẹ̀

  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.

FAQ

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.

Àwọn àgbéyẹ̀wò

Òkúdù 21, 2025 1 ìdáhùn
and it is absolutely awesome! you can take out unwanted links or change that weird label that you donÌtumọ̀ Yorùbá: ’t know where it is coming from
Ka gbogbo àwọn àgbéyẹ̀wò 2

Àwọn Olùkópa & Olùgbéejáde

“String Replacer” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “String Replacer” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

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