Title: String Locator
Author: InstaWP
Published: <strong>2013 年 8 月 15 日</strong>
Last modified: 2025 年 1 月 15 日

---

搜尋外掛

![](https://ps.w.org/string-locator/assets/banner-772x250.png?rev=928605)

![](https://ps.w.org/string-locator/assets/icon-256x256.png?rev=1352230)

# String Locator

 由 [InstaWP](https://profiles.wordpress.org/instawp/) 開發

[下載](https://downloads.wordpress.org/plugin/string-locator.2.6.7.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/string-locator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/string-locator/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/string-locator/#developers)

 [技術支援](https://wordpress.org/support/plugin/string-locator/)

## 外掛說明

使用佈景主題及外掛時，使用者有時候會注意到某些字串可能採用硬式編碼方式撰寫在檔案
中；這種字串需要修改時，卻不知道字串是屬於哪個佈景主題或外掛，自然也就不知道要搜尋
哪個檔案。

這個外掛能搜尋網站上的佈景主題、外掛，甚至是核心程式，並在搜尋後會顯示檔案清單，
其中會包含相符的文字及符合搜尋結果的檔案名稱及行號，之後只要點擊搜尋結果中的連結，
便能快速進行編輯。

依照預設，檔案完成編輯後，便會進行一致性檢查，協助使用者尋找常常因故遺漏的大括弧、
括弧及不一致之處，這可以大幅降低編輯操作對網站的風險。請注意，無法絕對保證安全。

在測試替代項目前，請先建立正式網站的副本，也就是 [WordPress 預備環境](https://tw.wordpress.org/plugins/instawp-connect)
網站。

## 螢幕擷圖

 * [[
 * 搜尋字串「hello dolly」的畫面
 * [[
 * 停用編輯功能的搜尋畫面
 * [[
 * 點擊其中一個結果的連結，便會在瀏覽器中載入編輯器
 * [[
 * 智慧型偵測偵測到大括弧使用的不一致

## 常見問題集

### 進行編輯時，智慧型掃描是否能保證網站安全無虞？

雖然這個外掛會偵測常用符號 (括弧、中括弧及大括弧)， 的不正確使用方式，但無法保證
能偵測到全部錯誤。最好的安全防護，是即使沒有進行編輯，也持續備份網站。

從 1.6 版開始，這個外掛會在完成編輯後檢查網站狀況。如果網站傳回網站停擺的錯誤代碼，
這個外掛便會將編輯後發生錯誤的檔案還原至舊版的檔案。

### 搜尋失敗且系統告知搜尋的模式無效

這個錯誤僅會發生於使用規則運算式進行搜尋，並且與 PHP 讀取規則運算式字串的方式有關。

撰寫搜尋字串時，請務必使用正斜線 (`/`) 包含搜尋字串，並直接串接任何想要使用的修飾詞，
例如不區分大小寫的 `i`。

## 使用者評論

![](https://secure.gravatar.com/avatar/1c53113567f83fe61de23c9ea53d030264fde12528f4b1c428509ffc120d4d6e?
s=60&d=retro&r=g)

### 󠀁[Works perfectly and Great Plugin](https://wordpress.org/support/topic/works-perfectly-and-great-plugin/)󠁿

 [aqeeliqbal](https://profiles.wordpress.org/aqeeliqbal/) 2026 年 4 月 9 日

Works perfectly and Great Plugin

![](https://secure.gravatar.com/avatar/4b74336b53c44542848a38a0f20e39581b5432180275883407166ef69e1b95de?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-17085/)󠁿

 [ishraqued](https://profiles.wordpress.org/ishraqued/) 2026 年 3 月 25 日

Great

![](https://secure.gravatar.com/avatar/5fbd75ff0eb49baa1d73c5684a6d501353d3278d3e6fe4c38044c9ce426526f8?
s=60&d=retro&r=g)

### 󠀁[Great for support](https://wordpress.org/support/topic/great-for-support-5/)󠁿

 [Adrian Tobey](https://profiles.wordpress.org/trainingbusinesspros/) 2025 年 6 
月 24 日

I’ve used this plugin now a dozen times to track down plugins conflicts for my customers.
Truly one of the best debug utilities, up there with Query Monitor!

![](https://secure.gravatar.com/avatar/c218c7f675b81fc117877c0a0f8f842b4268543d3e7501fa8c6e3b0717a2485d?
s=60&d=retro&r=g)

### 󠀁[A translation passepartout](https://wordpress.org/support/topic/a-translation-passepartout/)󠁿

 [masvil](https://profiles.wordpress.org/masvil/) 2025 年 2 月 14 日

Some plugins don’t allow translations in a standard way. For those, there is String
locator.

![](https://secure.gravatar.com/avatar/db85d50a8b97fada2ec8b7f756e4d4a678d238f7b1e4f277db36e32b28139d01?
s=60&d=retro&r=g)

### 󠀁[Doesnt work](https://wordpress.org/support/topic/doesnt-work-3046/)󠁿

 [sueyrad](https://profiles.wordpress.org/sueyrad/) 2025 年 1 月 18 日

WarningThe maximum time your server allows a script to run (1) is too low for the
plugin to run as intended, at startup 2 seconds have passed I reached out to my 
hosting and they said to reach out to you with the error. “the PHP max_execution_time
is currently set to 120” no support

![](https://secure.gravatar.com/avatar/97126a0413912eca72bb5cc81f24861d03c05b7cbd5720f65dd9a0f3ce688b9c?
s=60&d=retro&r=g)

### 󠀁[Top Plugin](https://wordpress.org/support/topic/top-plugin-474/)󠁿

 [klixtorg](https://profiles.wordpress.org/klixtorg/) 2024 年 11 月 24 日

A powerful addition to your debugging toolkit.

 [ 閱讀全部 125 則使用者評論 ](https://wordpress.org/support/plugin/string-locator/reviews/)

## 參與者及開發者

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

參與者

 *   [ InstaWP ](https://profiles.wordpress.org/instawp/)
 *   [ Marius L. J. ](https://profiles.wordpress.org/clorith/)

〈String Locator〉外掛目前已有 17 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/string-locator/contributors)
為這個外掛做出的貢獻。

[將〈String Locator〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/string-locator)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/string-locator/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/string-locator/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/string-locator/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/string-locator/)。

## 變更記錄

#### 2.6.7 (2025-01-15)

 * Fixed secured unserialized data handling to prevent potential vulnerabilities.
 * Verified compatibility with WordPress 6.7

#### 2.6.6 (2024-08-21)

 * Fixed missing URL input sanitization.
 * Verified compatibility with WordPress 6.6

#### 2.6.5 (2024-03-12)

 * Verified compatibility with WordPress 6.5

#### 2.6.4 (2024-03-12)

 * Verified compatibility with WordPress 6.4

#### 2.6.3 (2023-08-10)

 * CSS/JS Loading bug fixes

#### 2.6.2 (2023-08-10)

 * Added InstaWP integration.
 * WP ORG Support ticket fixes.

#### 2.6.1 (2022-11-02)

 * Fixed a bug causing certain setups to be unable to perform searches when editing
   would also be unavailable.
 * Fixed a bug causing certain plugins to prevent the search results list from being
   displayed properly.
 * Verified compatibility with WordPress 6.1

#### 2.6.0 (2022-07-20)

 * Added database search feature.
 * Added tools for quickly replacing data in the search results.
 * Added many more filters and actions.
 * Added hardening of file path checks.
 * Removed one-time donation notice.
 * Removed jQuery dependency in favor of vanilla JavaScript code.
 * Separated search class into a base class for extenders.
 * Fixed bug with code viewer sizes when resizing your window.
 * Fixed bug in the list view if special characters were in the search string.
 * Fixed a bug where RegEx search validation may have a false positive check for
   invalid patterns.
 * Fixed missing translator function if Javascript is missing.
 * Improved capability checks for displaying the search interface when editing is
   disabled.

#### Older entries

See changelog.txt for the version history.

## 中繼資料

 *  版本 **2.6.7**
 *  最後更新 **1 年前**
 *  啟用安裝數 **100,000+**
 *  WordPress 版本需求 ** 4.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/string-locator/)、[Dutch](https://nl.wordpress.org/plugins/string-locator/)、
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/string-locator/)、[English (Australia)](https://en-au.wordpress.org/plugins/string-locator/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/string-locator/)、[English (US)](https://wordpress.org/plugins/string-locator/)、
   [French (France)](https://fr.wordpress.org/plugins/string-locator/)、[German](https://de.wordpress.org/plugins/string-locator/)、
   [German (Switzerland)](https://de-ch.wordpress.org/plugins/string-locator/)、
   [Greek](https://el.wordpress.org/plugins/string-locator/)、[Japanese](https://ja.wordpress.org/plugins/string-locator/)、
   [Romanian](https://ro.wordpress.org/plugins/string-locator/)、[Spanish (Chile)](https://cl.wordpress.org/plugins/string-locator/)、
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/string-locator/)、[Spanish (Mexico)](https://es-mx.wordpress.org/plugins/string-locator/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/string-locator/)、[Spanish (Venezuela)](https://ve.wordpress.org/plugins/string-locator/)、
   及 [Swedish](https://sv.wordpress.org/plugins/string-locator/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/string-locator)
 * 標籤
 * [find](https://tw.wordpress.org/plugins/tags/find/)[Highlight](https://tw.wordpress.org/plugins/tags/highlight/)
   [search](https://tw.wordpress.org/plugins/tags/search/)[syntax](https://tw.wordpress.org/plugins/tags/syntax/)
   [text](https://tw.wordpress.org/plugins/tags/text/)
 *  [進階檢視](https://tw.wordpress.org/plugins/string-locator/advanced/)

## 評分

 4.6 星，滿分為 5 星

 *  [  113 個 5 星使用者評論     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=3)
 *  [  2 個 2 星使用者評論     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=2)
 *  [  9 個 1 星使用者評論     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/string-locator/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/string-locator/reviews/)

## 參與者

 *   [ InstaWP ](https://profiles.wordpress.org/instawp/)
 *   [ Marius L. J. ](https://profiles.wordpress.org/clorith/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/string-locator/)