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)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/string-locator/#description)
 * [评价](https://cn.wordpress.org/plugins/string-locator/#reviews)
 * [开发进展](https://cn.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`.
 * [[
 * Search screen when editing is disabled.
 * [[
 * 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.

## 常见问题

### 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.

## 额外信息

 *  版本 **2.6.7**
 *  最后更新：**1 年前**
 *  活跃安装数量 **100,000+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **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://cn.wordpress.org/plugins/tags/find/)[Highlight](https://cn.wordpress.org/plugins/tags/highlight/)
   [search](https://cn.wordpress.org/plugins/tags/search/)[syntax](https://cn.wordpress.org/plugins/tags/syntax/)
   [text](https://cn.wordpress.org/plugins/tags/text/)
 *  [高级视图](https://cn.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/)