Duplicate Snippet
Embed Snippet on Your Site
Search and replace text strings
This snippet searches for 'old' text and replaces it with the new text. This way you can add text strings in your text that can change.
For example, I want all the instances of the amount of days 'guarantee' to be changable with 1 edit.
In all texts I have the text wp_code_guarantee_days, which this code will change to 60.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments