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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](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://zh-hk.wordpress.org/plugins/string-locator/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/string-locator/#reviews)
 * [開發](https://zh-hk.wordpress.org/plugins/string-locator/#developers)

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

## 描述

When working on themes and plugins you often notice a piece of text that appears
hardcoded into the files, you need to modify it, but you don’t know what theme or
plugin it’s in, and certainly not which individual file to look in.

Easily search through your themes, plugins or even WordPress core and be presented
with a list of files, the matched text and what line of the file matched your search.

You can then quickly make edits directly in your browser by clicking the link from
the search results.

By default a consistency check is performed when making edits to files, this will
look for inconsistencies with braces, brackets and parenthesis that are often accidentally
left in.
 This drastically reduces the risk of breaking your site when making edits,
but is in no way an absolute guarantee.

Create a replica of your live site a.k.a – [WordPress Staging](https://wordpress.org/plugins/instawp-connect)
site before testing substitutions.

## 螢幕截圖

[⌊Searching WordPress for the string hello dolly.⌉⌊Searching WordPress for the string
hello dolly.⌉[

Searching WordPress for the string `hello dolly`.

[⌊Search screen when editing is disabled.⌉⌊Search screen when editing is disabled
.⌉[

Search screen when editing is disabled.

[⌊Having clicked the link for one of the results and being taken to the editor in
the browser.⌉⌊Having clicked the link for one of the results and being taken to 
the editor in the browser.⌉[

Having clicked the link for one of the results and being taken to the editor in 
the browser.

[⌊Smart-Scan has detected an inconsistency in the use of braces.⌉⌊Smart-Scan has
detected an inconsistency in the use of braces.⌉[

Smart-Scan has detected an inconsistency in the use of braces.

## 常見問題

### Will Smart-Scan guarantee my site is safe when making edits?

Although it will do it’s best at detecting incorrect usage of the commonly used 
symbols (parenthesis, brackets and braces), there is no guarantee every possible
error is detected. The best safe guard is to keep consistent backups of your site(
even when not making edits).

As of version 1.6, the plugin will check your site health after performing an edit.
If the site is returning a site breaking error code, we’ll revert to the previous
version of the file.

### My search is failing and I am told that my search is an invalid pattern

This error is only related to regex searches, and is based off how PHP reads your
regex string.

When writing your search string, make sure to wrap your search in forward slashes(`/`),
directly followed by any modifiers like case insensitive (`i`) that you may want
to use.

## 評價

![](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.

## 其它

 *  Version **2.6.7**
 *  Last updated **1 年之前**
 *  Active installations **100,000+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **6.7.5**
 *  Languages
 * [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)
 * Tags
 * [find](https://zh-hk.wordpress.org/plugins/tags/find/)[Highlight](https://zh-hk.wordpress.org/plugins/tags/highlight/)
   [search](https://zh-hk.wordpress.org/plugins/tags/search/)[syntax](https://zh-hk.wordpress.org/plugins/tags/syntax/)
   [text](https://zh-hk.wordpress.org/plugins/tags/text/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/string-locator/advanced/)

## 評分

 4.6 out of 5 stars.

 *  [  113 5-star reviews     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=2)
 *  [  9 1-star reviews     ](https://wordpress.org/support/plugin/string-locator/reviews/?filter=1)

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

[See all reviews](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/)