Search & Replace

外掛說明

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

為避免出現問題,請瞭解這個外掛會完全按照輸入資料進行搜尋,並將搜尋結果取代為 [取代為] 欄位中指定的內容。
一般常見錯誤:
搜尋字串:http://web.com/wordpress/ (字串結尾包含正斜線 /)
取代為:http://neuweb.com/wordpress (字串結尾遺漏正斜線 /)
取代後的網址會變成 http://neuweb.com/wordpresscontent/…

正確使用 [取代為] 功能的方式:
搜尋字串:http://web.com/wordpress/
取代為:http://neuweb.com/wordpress/
取代後的網址會變成 http://neuweb.com/wordpress/content/…

我們實作了許多特殊功能!

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

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

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

查看這個外掛的 GitHub 存放庫

主要功能

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

Inpsyde 團隊設計出品

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

捐款贊助

如果你想捐款贊助我們的開發工作,我們只需要你給這個外掛正面的評價,無須捐款。

螢幕擷圖

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

安裝方式

執行環境需求

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

使用者評論

2019 年 9 月 28 日
Totalmente en español Muy entendible nada Revuelto, la Información de las Acciones que hara el Plugin completas y detalladas Lo recomiendo altamente para cambiar el contenido MIXTO de tu website
2019 年 9 月 24 日
Great plugin! It cannot be simpler! Easy to use and works fine. Saved me a lot of time. (I have to confess despite having used this plugin before, I did give a try to Better Search and Replace and it did NOT work even after reading their documentation. This plugin is second to none to complete the task! Recommended! BEWARE: when you do a Search & Replace (Dry Run unchecked) and get the message "### tables were processed. #### cells need to be updated." what it really means is the updates WERE ACTUALLY COMMITTED! - I almost go nuts. A better way of saying it could be: "### tables were processed. #### cells were updated." 🙂 Keep it up team! Thank you!
2019 年 9 月 21 日
I had just migrated a WordPress site and all of my images had disappeared. I knew it was a URL problem, but how was I to fix HUNDREDS of wrong URLs in the database? This plug-in saved my bacon! I especially like its "dry run" feature so I could see exactly what would be changed. I ran that first, on two different queries. Once I saw that it all checked out, I had the plug-in make the changes to the database and now I'm back in business. Thank you so much!
2019 年 9 月 18 日
This plugin works just as described. The following suggestions may improve the product. Wish it had just a "Search" option without having to use the "Replace" function. After updating the reply is "xx tables were processed. xx cells need to be updated." I think it should read "xx tables were processed. xx cells were updated. Finally, if you try to reupdate the same data, the function still gives a reply, "xx tables were processed. xx cells need to be updated." However, when you click on "View details" nothing is displayed on the results page. Perhaps you should add a statement like, "This table was already updated with this data."
2019 年 9 月 18 日
A great plug in for making global edits. Lets you search for and replace a phrase. Ideal for moving sites or parts of sites after edits. Many thanks.
閱讀全部 231 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Search & Replace〉的開發相關工作。

參與者

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

將 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

v2.6.5

  • Fix for change User-ID, add table comments

v2.6.4

  • 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