/

CM Search and Replace (CMSR) - Saving Changes to the Database


Saving Changes to the Database

Back to User Guide

What is This Feature

The main functionality of the plugin is making replacements on the fly, without changing them to the database.

However, it's possible to commit replacement rules to the database. There are two ways.

  1. Saving Changes in Specific Pages
  2. Saving Changes Across Entire Site

1) Saving Changes in Specific Pages

You can enable a button on each page - it's visible only to the admin. Clicking on it will save changes permanently to the database. 

Example

Scope

The button will appear on each post or page, so the changes will apply to the current content only.

Enabling Button

Head to Settings → Replacement Toggle Widget.

  1. Make sure Display Widget for is set to "Show to admin only"
  2. The option "Admin can save changes to database" will appear. Enable it
  3. Make sure you set it to appear on the top and/or the bottom of each post

Now, the button will appear when the replacement rules are applied.


2) Saving Changes Across Entire Site

When creating or editing a rule, you will see the button UpdateDb. 

Click on it to perform that rule across the whole site.

Setting

TIP: Confirmation

For safety, the plugin will ask if you are sure before commiting the change.

.

More information about the On Demand Search and Replace WordPress  Plugin

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