Linux 软件免费装
Banner图

Text Replace - Find and Replace WordPress Strings

开发者 shsajalchowdhury
更新时间 2026年1月11日 00:27
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce gettext text-replace find-and-replace string-replacement

下载

1.0.1 1.0.2 1.0.0 1.0.3 1.0.4

详情介绍:

Text Replace is a lightweight, performance-optimized WordPress plugin that lets you find and replace any text string on your website without modifying theme or plugin files. Perfect for customizing WooCommerce buttons, changing form labels, or personalizing any text across your site. Why Choose Text Replace? Perfect For Key Features Simple String Replacement Find and replace any text from themes, plugins, or WordPress core with just a few clicks. No coding knowledge required. Text Domain Filtering Target specific plugins or themes by their text domain, or apply replacements globally across your entire site. This prevents unintended replacements in other plugins. Case Sensitivity Control Choose whether replacements should match exact case or be case-insensitive for maximum flexibility. Priority Ordering Control the order in which replacements are applied using priority numbers (1-999). Lower numbers apply first. Enable/Disable Toggle Quickly activate or deactivate replacements without deleting them. Perfect for testing and seasonal changes. Bulk Operations Select multiple replacements and enable, disable, or delete them all at once to save time. Import/Export Export your replacement configurations to JSON files for backup or transfer to other sites. Import with automatic duplicate detection.

安装:

Automatic Installation
  1. Log in to your WordPress admin panel
  2. Navigate to Plugins > Add New
  3. Search for "Text Replace"
  4. Click Install Now and then Activate
  5. Go to Text Replace in your admin menu to start adding replacements
Manual Installation
  1. Download the plugin ZIP file
  2. Log in to your WordPress admin panel
  3. Navigate to Plugins > Add New > Upload Plugin
  4. Choose the ZIP file and click Install Now
  5. Click Activate Plugin
  6. Go to Text Replace in your admin menu to start adding replacements
After Installation
  1. Navigate to Text Replace > Add New in your WordPress admin
  2. Enter the Source String (text you want to replace)
  3. Enter the Replacement String (new text)
  4. Optionally specify a Text Domain to target a specific plugin or theme
  5. Set Priority if you have multiple related replacements
  6. Choose Case Sensitive matching if needed
  7. Set status to Active
  8. Click Save Replacement
  9. Clear your site cache if using a caching plugin
  10. Visit your site to see the changes

屏幕截图:

  • Add new text replacement - Replace WooCommerce buttons, form labels, and theme text without coding
  • Text domain filtering - Target specific plugins like WooCommerce or Contact Form 7 for precise string replacement
  • Import/Export replacements - Transfer find and replace configurations between WordPress sites with JSON backup

升级注意事项:

1.0.4 New bulk delete feature and cleaner admin interface for better replacement management. 1.0.3 Update compatibility with the WordPress version. 1.0.2 Unlimited text replacements now supported! Updated for WordPress 6.9 with improved performance and one-click cache clearing. 1.0.1 Minor bug fixes and security improvements for text replacement operations. 1.0.0 Initial release of Text Replace. Install to start finding and replacing text on your WordPress site without editing code.

常见问题:

Will this work with my theme?

Yes! Text Replace works with any WordPress theme by hooking into WordPress's translation system (gettext filter).

Will this work with WooCommerce?

Absolutely! It's perfect for customizing WooCommerce text like "Add to Cart", "Proceed to Checkout", and more. Just use "woocommerce" as the text domain to target only WooCommerce strings.

Does this affect site performance?

Minimal impact. The plugin uses intelligent caching and executes only one database query per page load. Active replacements are cached for 24 hours, so there's virtually no performance impact.

What happens when I update my theme or plugins?

Your text replacements remain intact! Since you're not modifying source files, updates won't affect your customizations. This is one of the main benefits of using Text Replace.

Can I replace HTML?

The plugin is designed for text replacement. While it can replace simple HTML, it's recommended to use it for plain text strings to avoid breaking markup.

How do I find a plugin's text domain?

Check the plugin's main file header for the "Text Domain" field, or look in the plugin's translation files (.po/.pot files). Common examples:

  • WooCommerce: woocommerce
  • Contact Form 7: contact-form-7
  • Yoast SEO: wordpress-seo
  • Elementor: elementor See the "How to Find Text Domain for Any Plugin" section above for detailed instructions.

What's the maximum number of replacements?

There is no hard limit on the number of replacements. The plugin is optimized to handle unlimited replacements efficiently with intelligent caching.

Can I use regular expressions?

Not in the current version. The plugin uses simple string matching for reliability and performance. Regular expressions may be added in a future version.

Why aren't my replacements appearing?

Check these common issues:

  1. Verify the replacement is Active (toggle switch is on)
  2. Check if you specified a Text Domain - try leaving it empty for global replacement
  3. Clear your site's cache (plugin cache and any caching plugins)
  4. Verify the source string matches exactly (check case sensitivity setting)
  5. Make sure the text you're trying to replace is actually generated by WordPress, not hardcoded in templates
  6. Check if another plugin or code is overriding the text after your replacement

How do I clear the cache?

  1. Go to Text Replace > Import/Export
  2. Click the Clear Cache button
  3. Also clear your caching plugin's cache if you use one (WP Rocket, W3 Total Cache, etc.)

Can I export and import replacements?

Yes! Go to Text Replace > Import/Export to export all replacements to a JSON file or import from a previously exported file. This is perfect for transferring configurations between sites or creating backups.

Does this work with multilingual plugins?

Yes, Text Replace works alongside multilingual plugins like WPML and Polylang. The replacements are applied after translation, so they won't interfere with your multilingual setup.

How do I prevent replacing text in other plugins?

Use the Text Domain field to target specific plugins or themes. For example, if you only want to replace text in WooCommerce, enter "woocommerce" as the text domain. This prevents unintended replacements elsewhere on your site.

Can I temporarily disable a replacement?

Yes! Click the status toggle in the replacements list to switch between Active and Inactive without deleting the replacement. Perfect for testing and seasonal changes.

What if I have multiple replacements that affect each other?

Use the Priority field to control the order. Lower numbers (e.g., 1, 5) apply before higher numbers (e.g., 10, 20). This ensures replacements happen in the correct sequence.

Is this compatible with page builders?

Yes! Text Replace works with Elementor, Beaver Builder, Divi, and other page builders for text generated by WordPress. However, hardcoded text in page builder templates may not be affected.

Can I replace text in custom post types?

Yes, as long as the text is generated through WordPress's translation system (gettext), it can be replaced regardless of post type.

Will this work with Gutenberg blocks?

Yes! Text Replace works with Gutenberg editor and block content, as long as the text is dynamically generated. Hardcoded text in block templates may not be affected.

Can I replace text in plugin notifications?

Yes! Use the plugin's text domain to target specific plugin notifications. This is useful for customizing admin notices, update messages, and error messages.

Does this work with WordPress multisite?

Yes, Text Replace works on WordPress multisite installations. Each site in the network has its own set of replacements. You can use import/export to share configurations across sites.

How do I know if a replacement is working?

  1. Make sure the replacement is set to Active
  2. Clear all caches (plugin + site cache)
  3. Log out and view your site in an incognito browser window
  4. Search for the source text on the page - it should be replaced
  5. Check browser inspector to verify the text in the HTML source

更新日志:

1.0.4 - 2025-01-10 1.0.3 - 2025-12-30 1.0.2 - 2025-12-16 1.0.1 - 2025-11-15 1.0.0 - 2025-10-25