# Search & Replace for WordPress

> Find and replace text across the database — for domain moves, HTTP→HTTPS or renamed content — with a dry run first and serialized data handled safely. Part…

TW-COR-22 Core


Find and replace text across the database — for domain moves, HTTP→HTTPS or renamed content — with a dry run first and serialized data handled safely.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Search & Replace

**Part number**
: TW-COR-22
**Section**
: [Core](https://togglework.app/features/core/)
**Settings**
: Own screen
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Moving a site to a new domain, switching to HTTPS or renaming a product across hundreds of posts all need a find-and-replace across the database. A naive replace breaks serialized data that WordPress and plugins store.

### What it does

- Finds and replaces text across the database.
- A dry run first, showing what would change.
- Handles serialized data safely.

![Search & Replace settings screen in the Toggleworks WordPress plugin](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/core-search-replace.webp?v=1795524175)

The Search & Replace screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Take a backup ([Database Backups](https://togglework.app/features/core/backups/)).
2. Run a dry run and read the results.
3. Run the real replace.

## How you use it

Switch Search & Replace on in Toggleworks → Core and it adds its own screen to wp-admin, where you do the work. There are no settings to get wrong first.

## Good to know

- Be specific: replace https://old-domain.com, not just old-domain, to avoid changing email addresses or unrelated text.

## Comes with 187 more parts

Search & Replace is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 27 Core parts](https://togglework.app/features/core/)

### People also look for it as

- search replace
- migrate
- domain change
- https
- database
- url change

## Often switched on with it

- [Database Backups](https://togglework.app/features/core/backups/) — TW-COR-02 · Back up the database on demand or on a schedule, download copies, and restore one in a click — handy before updates or big… · 3 settings
- [Media Replace](https://togglework.app/features/core/media-replace/) — TW-COR-14 · Upload a new file over an existing media item. The ID and URL stay the same, so every link and embed keeps working. · Own screen in wp-admin
- [Search Log](https://togglework.app/features/core/search-log/) — TW-COR-21 · See what visitors type into your site search and which searches find nothing: a direct list of content to write and products to… · 2 settings
- [Database Cleanup](https://togglework.app/features/performance/db-cleanup/) — TW-PRF-04 · Remove old revisions, auto-drafts, trash, spam, orphaned meta and expired transients, by hand or on a weekly schedule. · 3 settings
- [Revisions & Autosave](https://togglework.app/features/performance/revisions/) — TW-PRF-16 · Limit how many post revisions are kept, and change the autosave and empty-trash intervals. · 4 settings
- [Search Console](https://togglework.app/features/seo/search-console/) — TW-SEO-09 · Connect Google Search Console to see clicks, impressions, average position and top search queries for every page — in the posts… · 4 settings

## Questions

**Is Search & Replace included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Search & Replace among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Search & Replace slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Search & Replace only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Search & Replace before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/core/search-replace/
