I have a WordPress website where some data is stored in various fields in the Customizer. For example, the customizer has a callout section with a button and there is a field for the button link. This same link is also used for a button in the pricing section, which is again saved in another customizer field.

Now, if this link changes, I want to be able to search and replace all instances of this link throughout my site including in the database and customizer data. Plugins like “Search & Replace” and “Better Search & Replace” don’t seem to work on the customizer data.

Is there a plugin that does (couldn’t find one with all the keywords I could think of)? If not, any pointers to how to create a plugin that does search/replace on customizer data?

Read more here: How to search and replace text within WordPress theme/customizer fields?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: