Title: Admin Code Search
Author: marbak
Published: <strong>2026 年 3 月 27 日</strong>
Last modified: 2026 年 5 月 24 日

---

搜索插件

![](https://ps.w.org/admin-code-search/assets/banner-772x250.png?rev=3492987)

![](https://ps.w.org/admin-code-search/assets/icon-256x256.png?rev=3492527)

# Admin Code Search

 作者：[marbak](https://profiles.wordpress.org/marbak/)

[下载](https://downloads.wordpress.org/plugin/admin-code-search.1.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/admin-code-search/#description)
 * [评价](https://cn.wordpress.org/plugins/admin-code-search/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/admin-code-search/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/admin-code-search/#developers)

 [支持](https://wordpress.org/support/plugin/admin-code-search/)

## 描述

Admin Code Search is a lightweight developer tool that lets you search code directly
from the WordPress admin area — no FTP or terminal access required.

It scans active plugins, themes, and MU plugins line-by-line and shows matching 
results with file paths and line numbers.

Designed for quick debugging, code tracing, and locating specific hooks, functions,
or strings across a site.

A simple, fast code search tool for developers working inside WordPress.

### Why use Admin Code Search?

Searching through plugin and theme files manually is slow and often requires FTP,
file manager access, or local copies.

Admin Code Search brings that functionality directly into wp-admin, allowing you
to:

 * Search plugin, theme, and MU plugin code instantly
 * Locate functions, hooks, and strings across files
 * Debug third-party plugins more efficiently
 * Work directly on live environments without leaving WordPress

### Features

 * Search inside active plugins, themes, and MU plugins
 * Case-sensitive or case-insensitive search
 * Partial match, whole word match, or match entire line exactly
 * Custom file extensions (e.g. php, js, css)
 * Line-by-line scanning for better performance on large codebases
 * Displays file path, line number, and highlighted match
 * Shows result count summary
 * Limits broad searches to the first 500 matches
 * Includes a Clear button to reset the search form and results
 * Excludes common heavy directories (vendor, node_modules, uploads, cache, .git,.
   svn)
 * Admin-only access for security

### Typical Use Cases

 * Locate where a function or hook is defined
 * Find all occurrences of a specific string
 * Debug custom integrations or third-party plugins
 * Debug issues without FTP access
 * Quickly explore unfamiliar codebases without leaving wp-admin

### Who is this for?

 * WordPress developers
 * Freelancers working on client sites
 * Agencies maintaining multiple projects
 * Anyone who needs quick code search inside WordPress

### Notes

Large searches may take longer on sites with many plugins or large codebases. Results
are processed in real time.

To keep output manageable, the plugin limits results to the first 500 matches and
shows a warning when that limit is reached.

#### Privacy

This plugin does not send any data to external services.

## 屏幕截图

[⌊Admin Code Search interface in Tools <span aria-hidden=⌉⌊Admin Code Search interface in Tools <span aria-hidden=⌉→ Code Search” class=”wp-image-9000001″ srcset=”https://i0.wp.com/ps.w.org/admin-code-search/assets/screenshot-1.png?rev=3492513&w=300 300w, https://i0.wp.com/ps.w.org/admin-code-search/assets/screenshot-1.png?rev=3492513&w=600 600w, https://i0.wp.com/ps.w.org/admin-code-search/assets/screenshot-1.png?rev=3492513&w=900 900w” sizes=”(max-width: 599px) 50vw, 33vw” width=”1919″ height=”921″ loading=”eager” fetchpriority=”high” decoding=”async”/>](https://ps.w.org/admin-code-search/assets/screenshot-1.png?rev=3492513)

Admin Code Search interface in Tools  Code Search

[⌊Search input with custom file extensions⌉⌊Search input with custom file extensions⌉[

Search input with custom file extensions

[⌊Results showing matches across plugin and theme files⌉⌊Results showing matches
across plugin and theme files⌉[

Results showing matches across plugin and theme files

[⌊Detailed result with file path, line number, and highlighted match⌉⌊Detailed result
with file path, line number, and highlighted match⌉[

Detailed result with file path, line number, and highlighted match

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/`
 2. Activate the plugin through the Plugins screen in WordPress
 3. Go to Tools > Code Search
 4. Enter a search term and run a search

## 常见问题

### Who can use this plugin?

Only administrators or users with the `manage_options` capability.

### What files are searched?

The plugin scans active plugin files, the active theme, the parent theme (if different),
and MU plugins.

### What is the difference between the match modes?

Partial match finds the search term anywhere within a line.

Whole word match finds the term as a distinct word, which is useful for function
and hook names.

Match entire line exactly only returns results where the entire trimmed line exactly
matches the search term.

### Can I search file types other than PHP?

Yes. You can enter comma-separated extensions such as `php,js,css,inc`.

### Will this affect site performance?

Search runs on demand and only when triggered by an admin. On very large sites, 
searches may take a few seconds.

### Why do I only see 500 results?

To keep searches fast and useful, the plugin limits output to the first 500 matches.
If that limit is reached, refine your search term or narrow the search scope.

### Does it search WordPress core files?

No. The plugin is limited to plugins, themes, and MU plugins.

### Is this plugin safe to use on production sites?

Yes. It is read-only and does not modify any files or data.

## 评价

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

### 󠀁[Very useful addon](https://wordpress.org/support/topic/very-useful-addon-5/)󠁿

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

Tested on active website. Everything works great!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/admin-code-search/reviews/)

## 贡献者及开发者

「Admin Code Search」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ marbak ](https://profiles.wordpress.org/marbak/)

[帮助将「Admin Code Search」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/admin-code-search)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/admin-code-search/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/admin-code-search/)，或通过[RSS](https://plugins.trac.wordpress.org/log/admin-code-search/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/admin-code-search/)。

## 更新日志

#### 1.2.2

 * Added whole word match.
 * Renamed exact line match to “Match entire line exactly” for clarity.
 * Added a 500-result limit for broad searches.
 * Added a warning when the result limit is reached.
 * Added a Clear button to reset the search form and results.

#### 1.2.1

 * Added whole word match option.
 * Renamed exact line match option to “Match entire line exactly” for clarity.
 * Improved match mode labeling in the search results.

#### 1.2.0

 * Added partial match and exact line match options.
 * Added MU Plugins scanning option.
 * Improved search controls for better precision.

#### 1.1.0

 * Added case-sensitive search option.
 * Added result count summary.
 * Improved scanner handling for readable files.

#### 1.0.0

 * Initial public release.

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**2 周前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/admin-code-search/)
 * 标签
 * [code search](https://cn.wordpress.org/plugins/tags/code-search/)[debugging](https://cn.wordpress.org/plugins/tags/debugging/)
   [developer-tools](https://cn.wordpress.org/plugins/tags/developer-tools/)[search plugins](https://cn.wordpress.org/plugins/tags/search-plugins/)
 *  [高级视图](https://cn.wordpress.org/plugins/admin-code-search/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/admin-code-search/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/admin-code-search/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/admin-code-search/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/admin-code-search/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/admin-code-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/admin-code-search/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/admin-code-search/reviews/)

## 贡献者

 *   [ marbak ](https://profiles.wordpress.org/marbak/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/admin-code-search/)