Search & Replace


透過 Search & Replace 外掛,具備管理者權限的站長便可以在網站中進行搜尋及取代作業。但在進行這項工作前,請先為網站建立一份可供還原的網站資料庫備份

為避免出現問題,請瞭解這個外掛會完全按照輸入資料進行搜尋,並將搜尋結果取代為 [取代為] 欄位中指定的內容。
搜尋字串: (字串結尾包含正斜線 /)
取代為: (字串結尾遺漏正斜線 /)

正確使用 [取代為] 功能的方式:


第一項便是 [取代網域名稱/網址],這項功能可以對於快速簡單移轉 WordPress 網站至其他主機相當有幫助,第二項則是完整支援序列化資料。還有更多功能等你一一挖掘出來。

我們的目標是讓這個外掛成為 WordPress 開發者及網站管理員的搜尋/取代解決方案。

請注意,要啟用這個外掛,PHP 的最低版本需求為 5.6 或更新版本。

查看這個外掛的 GitHub 存放庫


  • 在 WordPress 網站資料庫中進行搜尋及取代
  • 變更 WordPress 安裝時設定的網域名稱及網址
  • 處理序列化資料
  • 可執行模擬作業或下載網站資料庫的 SQL 檔案
  • 變更資料庫前置詞
  • 備份及還原
  • 支援 WordPress 多站網路
  • 介面本地化已準備就緒,可將這個外掛本地化為任一語言

Inpsyde 團隊設計出品

Inpsyde 團隊組建於 2006 年,始終專注於網站及 WordPress 的工程開發工作。




  • 搜尋及取代
  • 取代網域名稱/網址
  • 還原網站資料庫
  • 備份網站資料庫
  • 搜尋或搜尋後進行取代的結果頁



  • WordPress 4.0 (多站網路亦同)
  • PHP 5.6,較新的 PHP 版本會帶來更快的執行效率


七月 11, 2019
I searched for http:// replaced that with https:// Now i can no longer edit or add posts or pages.
四月 25, 2019
Utilizei e funcionou perfeitamente, principalmente para quando se vai migrar para outro host e vai mudar as pastas e instalação do WordPress. I used it and it worked perfectly, especially for when it will migrate to another host and will change the folders and installation of WordPress
四月 24, 2019
New version does not work. It says replacements were made to make you think it worked, but after checking nothing was replaced. I made sure it's not dry run and save changes to database is checked. I used older version for a few years, so I know how to use the plugin. Tested on php5.6 and php 7, with 2 different hosting providers. New version does not works since they "improved" it.
閱讀全部 219 則使用者評論


Search & Replace 外掛為開源軟體。以下人員為這個外掛做出了重大貢獻。


Search & Replace 外掛目前已有 5 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Search & Replace 外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄


3.2.1 (2019-06-06)

  • Update readme for tested up WP versions
  • Add check for replace function to get more solid replace for custom tables. #132
  • Fix small typos
  • Fix Throwable because we set as minimum php 5.6

3.2.0 (2019-01-17)

  • Added CSV format alternative for search/replace #82.
  • Improve code structure, preparation for more solid UnitTests.
  • Improve Modal Table UI.
  • Added Multiline searching #119.
  • Fix several issues to run always with php 5.6 to 7.2.

v3.1.2 (2016-12-31)

  • hotfix: prevent declaration error with Requisite

v3.1.1 (2016-12-24)

  • Refactor Plugin loading #67
  • Display error notice is the search value the current domain and save changes to Database selected

v3.1.0 (2016-02-07)

  • Improve codquality
  • Prepared for localization (GlotPress)
  • Prevent doing idle prozesses if search & replace pattern the same
  • Implement better BigData handling.
  • Implement better tab and adminpage handling #33
  • Prepare the Plugin for localization, change Text-Domain.#47
  • Remove difference in wordings for buttons between descriptions.#46

v3.0.1 (2016-02-09)

  • Add support for Searchpattern with quotes. #40
  • Basic travis support for travis was added. #38
  • Fix Unittest #37

v3.0.0 (2016-01-29)

  • Refactor the plugin, new requirements, goal and result.
  • Thanks to Sven Hinse for help to maintain the plugin
  • Changeable table prefix on replace site URL tab enhancement
  • Implement database backup & import tab
  • Implement dry Run: Keep for search and replace
  • Prevent self destroy
  • Multisite basic support – show only tables of current site
  • Add special tab for replace the URL
  • Supports serialized data
  • Refactor the whole codebase

v2.7.1 (2015-05-28)

  • Fix for changes on database collate since WordPress version 4.2
  • Fix to reduce backslashes in search and replace string

v2.7.0 (2014-09-14)

  • Exclude serialized data from replace function (maybe we reduce the support)
  • Add hint, if is serialized data on the result table
  • Fix to see also the result case sensitive

v2.6.6 (09/05/2014)

  • Thanks to Ron Guerin for help to maintain the plugin
  • Fix to use $wpdb object for all database access
  • Fix inability to search and replace quoted strings
  • Output changes to clarify when searching vs. searching and replacing
  • Some changes to English strings and string identifiers


  • Fix for change User-ID, add table comments


  • Fix capability check, if the constant DISALLOW_FILE_EDIT is defined

v2.6.3 (10/10/2011)

  • filter for return values, html-filter
  • add belarussian language
  • add romanian language files

v2.6.2 (09/11/2011)

  • change right object for use the plugin also on WP smaller 3.0, include 2.9
  • add function search and replace in all tables of the database – special care!

v2.6.1 (01/25/2011)

  • Feature: Add Signups-Table for WP MU
  • Maintenance: check for tables, PHP Warning fix

v2.6.0 (01/03/2011)

  • Feature: add an new search for find strings (maybe a new way for search strings)
  • Maintenance: small changes on source

v2.5.1 (07/07/2010)

  • small changes for use in WP 3.0
    Status API Training Shop Blog About Pricing