Search and Replace Plugin (CMSR) - Importing and Exporting Replacement Rules


Importing and Exporting Replacement Rules

Back to User Guide

What is This Feature

The Search and Replace plugin allows you export and import all replacement rules, including paused ones. This is done via a .json file.

This is useful to migrate rules from different sites or add/remove them in batch.


Accessing Export/Import Settings

Head to Admin Panel → Search & Replace → Export/Import.

Navigation to the export and import settings - WordPress Plugin Search and Replace
Navigation to the export and import settings

This is the screen where you perform both operations.

Export and import settings - WordPress Plugin Search Database and Replace
Export and import settings

Start by clicking Download Export File. You can now edit your rules and create new ones.


Editing the json File

You can edit json files with any text editor. There are also online alternatives, such as https://jsoneditoronline.org/.

The most important field is "cmodsar_replacements", where the rules are listed.

Editing the json file - Find and Replace Plugin WordPress
Editing the json file

In this example, we duplicate one rule to create a new one.

Creating new rule - WordPress Plugin to Mass Replace Links
Creating new rule

More information about the Search and Replace Plugin for WordPress

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.