Linux 软件免费装
Banner图

HookTrace - Trace Hooks with Precision

开发者 smilingsyntax
codemadan
更新时间 2026年1月9日 02:06
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

debugging hooks trace profiling hook trace

下载

1.0.0

详情介绍:

HookTrace is a developer observability tool that records and visualizes the runtime execution order of WordPress hooks, filters, and plugin initialization for a single page request. For Developers Only This plugin is designed exclusively for development and staging environments. It helps developers understand: Key Features: Requirements: Safety Features:

安装:

  1. Upload the hooktrace folder to /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Ensure WP_DEBUG is set to true in your wp-config.php file
  4. (Optional) For early hook capture, copy hooktrace-bootstrap.php from the plugin directory to /wp-content/mu-plugins/

屏幕截图:

  • Selected hook detail view showing all callbacks with priority, execution order, duration, and file paths
  • Color-coded badges indicating source (core/theme/plugin) and type (action/filter)

常见问题:

Does this plugin work in production?

No. This plugin is designed exclusively for development and staging environments. It requires WP_DEBUG to be enabled and will automatically disable itself if WP_DEBUG is false.

Will this slow down my site?

The plugin is designed with minimal overhead (5-10ms average). However, it should only be used in development/staging environments where performance is not critical.

Do I need to install the MU-plugin bootstrap?

The MU-plugin bootstrap is optional but recommended. It allows the plugin to capture hooks from the very beginning of WordPress initialization, including must-use plugins and early core hooks.

Can I use this to debug plugin conflicts?

Yes! The timeline view shows which hooks fire and which plugins are registering callbacks, making it easier to identify conflicts and execution order issues.

Does this modify WordPress behavior?

No. This plugin is purely observational. It never modifies hook execution, suppresses errors, or changes WordPress behavior in any way.

What data is stored?

No data is stored. All trace information is kept in memory for the current request only and is discarded after the page loads.

How do I inspect a specific hook?

Click on any hook in the list to see detailed information about all callbacks registered for that hook, including priority, execution order, duration, and source file location.

更新日志:

1.0.0