WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress Hook Sniffer

The WordPress Hook Sniffer plugin is a tool for plugin developers that helps determine the sequence in which action and filter functions are fired.

The WordPress Hook Sniffer plugin is a tool for plugin developers that helps determine the sequence in which action and filter functions are fired. It allows you to peer into the inner workings of the WordPress Plugin API. You can configure what is outputted and to where the output is sent (screen or text file).

Output Options

You can choose to output any or all of the six different sets of hook data that WordPress Hook Sniffer collects. Each dataset provides a unique insight into the underlying working of WordPress' hooks. The currently available datasets are:

Added Functions:

a listing of, in the order in which they were encountered during code execution, all add_action calls and add_filter calls

Removed Functions:

a listing of, in the order in which they were encountered during code execution, all remove_action calls and remove_filter calls

Action and Filter Function Array:

output the array that holds all of the added action and filter functions used by the do_action and apply_filters functions

Action Event Firing Order:

a sequential listing of all the do_action events that need to be processed

Action Event Firing Sequence:

a sequential listing of do_action events and their corresponding fired action function(s)

Filter Event Firing Sequence:

a sequential listing of apply_filters events with their corresponding fired filter function(s)

WARNING:

This plugin is to be used only in a development sandbox and not in a production environment.

Disclaimer

This plugin is provided "as is." It is free software licensed under the terms of the [GNU General Public License 3.0 (GPL)] (http://www.gnu.org/licenses/gpl.html "GNU General Public License 3.0"). It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I am not liable for any damages or losses. Your only recourse is to stop using this plugin.

Requires: WP 3.0 or higher
Compatible up to: WP 3.0.4
Last Updated: 2010-12-31
Downloads: 4,273

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

100,1,1
0,1,0
100,1,1
100,1,1
100,1,1
50,2,1
100,2,2
100,1,1
100,2,2
100,1,1
100,2,2
0,1,0
0,1,0