Title: Debug Bar Rewrite Rules
Author: Oleg Butuzov
Published: <strong>2016 年 9 月 6 日</strong>
Last modified: 2024 年 7 月 6 日

---

搜索插件

![](https://ps.w.org/debug-bar-rewrite-rules/assets/banner-772x250.png?rev=1843137)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/debug-bar-rewrite-rules/assets/icon-256x256.png?rev=1843137)

# Debug Bar Rewrite Rules

 作者：[Oleg Butuzov](https://profiles.wordpress.org/butuzov/)

[下载](https://downloads.wordpress.org/plugin/debug-bar-rewrite-rules.0.6.5.zip)

 * [详情](https://cn.wordpress.org/plugins/debug-bar-rewrite-rules/#description)
 * [评价](https://cn.wordpress.org/plugins/debug-bar-rewrite-rules/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/debug-bar-rewrite-rules/#developers)

 [支持](https://wordpress.org/support/plugin/debug-bar-rewrite-rules/)

## 描述

Debug Bar Rewrite Rules adds information about Rewrite Rules (changed via filters)
to a new panel in the Debug Bar. This plugin is an extension for [Debug Bar](https://wordpress.org/extend/plugins/debug-bar/),
but it is also can work in standalone mode (as admin tools page). Note: this plugin
not able to track `add_rewrite_rule` function calls, for a reason this function 
is untraceable.

Once installed, you will have access to the following information:

 * Number of existing rewrite rules
 * List of rewrite rules
 * List of available filter hooks that can affect rewrite rules.
 * List of filters that affects rewrite rules.
 * Ability to search in rules with highlighting matches.
 * Ability to test url and see what rules can be applied to it.
 * Ability to flush rules directly from debug bar panel/tools page.

## 屏幕截图

 * [[
 * Testing url for matches – show matched rules and actual matches
 * [[
 * Searching in rules list alongside with filtering and highlighting occurrences
 * [[
 * Interface of Rewrite Rules Inspector without Debug Bar

## 评价

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

### 󠀁[Amazing plugin!](https://wordpress.org/support/topic/amazing-plugin-1703/)󠁿

 [Rasso Hilber](https://profiles.wordpress.org/nonverbla/) 2020 年 12 月 4 日

This plugin makes it so easy to debug and even discover WP rewrite rules. Thanks
a lot!!

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

### 󠀁[Super helpful](https://wordpress.org/support/topic/super-helpful-91/)󠁿

 [ladislavdurchanek](https://profiles.wordpress.org/ladislavdurchanek/) 2020 年 
10 月 28 日

Ability to quickly display all rules that match a URL just saved me a lot of time.

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

### 󠀁[Extremely Useful](https://wordpress.org/support/topic/extremely-useful-136/)󠁿

 [mgfotiades](https://profiles.wordpress.org/mgfotiades/) 2020 年 10 月 8 日

I was setting up rewrite rules for the first time and had set some breakpoints to
take a look at the existing rules when I thought, “there must be a plugin for this.”
And there was. Not only does it let you examine the existing rules, but you can 
also test urls to determine which rules match and the resulting query args. I ran
into one small issue as a result of some of my debug settings and the developer 
fixed it and deployed a new version quickly. It’s joined the few plugins in the 
boilerplate site I use as the starting point for new sites. Thanks, Oleg.

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

### 󠀁[Informative and convenient](https://wordpress.org/support/topic/informative-and-convenient/)󠁿

 [Gleb Kemarsky](https://profiles.wordpress.org/glebkema/) 2020 年 1 月 14 日

Good visual presentation of data. There is more information and it is more conveniently
organized than in the Rewrite Rules Inspector, for example. Automatically integrates
into the Debug Bar, if installed.

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

### 󠀁[nice tool](https://wordpress.org/support/topic/nice-tool-66/)󠁿

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

Really nice tool for working with rewrite_urls array and permalinks customizations.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/debug-bar-rewrite-rules/reviews/)

## 贡献者及开发者

「Debug Bar Rewrite Rules」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Oleg Butuzov ](https://profiles.wordpress.org/butuzov/)

「Debug Bar Rewrite Rules」插件已被翻译至 8 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/debug-bar-rewrite-rules/contributors)
为本插件所做的贡献。

[帮助将「Debug Bar Rewrite Rules」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/debug-bar-rewrite-rules)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.6.5

 * [bugfix] – php8.0 compatible call_user_func_array calls.

#### 0.6

 * [general] – way assets appear on a page changed.
 * [bug] – Fixed: warning on private static var
 * [bug] – Fixed: admin page https://github.com/butuzov/Debug-Bar-Rewrite-Rules/
   issues/2
 * [bug] – Fixed: domain field https://github.com/butuzov/Debug-Bar-Rewrite-Rules/
   issues/3
 * [general] – added Makefile to simplify development

#### 0.5

 * [minor changes] – Localization Changes.
 * [improvement] – New Icon (for wordpress.org) and tags.
 * [code refactoring] – Minor code changes.

#### 0.4

 * [improvement] – Added track for PHP `__invoke` methods (callable objects)
 * [bugfix] – Added fix for plugin loaded via symlinks
 * [code refactoring] – Code of PHP and JS refactored.

#### 0.3

 * [ui] UI Change – Domain input box width calculated with JS
 * [bugfix] – e.preventDefault()
 * [bugfix] – Double check for empty array in filters UI

#### 0.2

 * Code refactored from version 0.1

#### 0.1

 * Non Public Release

## 额外信息

 *  版本 **0.6.5**
 *  最后更新：**2 年前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/debug-bar-rewrite-rules/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/debug-bar-rewrite-rules/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/debug-bar-rewrite-rules/)、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/debug-bar-rewrite-rules/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/debug-bar-rewrite-rules/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/debug-bar-rewrite-rules/) 、
   [English (US)](https://wordpress.org/plugins/debug-bar-rewrite-rules/) 、 [Swedish](https://sv.wordpress.org/plugins/debug-bar-rewrite-rules/)
   和 [Ukrainian](https://uk.wordpress.org/plugins/debug-bar-rewrite-rules/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/debug-bar-rewrite-rules)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[debug bar](https://cn.wordpress.org/plugins/tags/debug-bar/)
   [permalinks](https://cn.wordpress.org/plugins/tags/permalinks/)[rewrite rules](https://cn.wordpress.org/plugins/tags/rewrite-rules/)
   [testing](https://cn.wordpress.org/plugins/tags/testing/)
 *  [高级视图](https://cn.wordpress.org/plugins/debug-bar-rewrite-rules/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/debug-bar-rewrite-rules/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/debug-bar-rewrite-rules/reviews/)

## 贡献者

 *   [ Oleg Butuzov ](https://profiles.wordpress.org/butuzov/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/debug-bar-rewrite-rules/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/butuzov/butuzov/blob/main/README.md#user-content-main)