bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Add ad hoc tracing of filter functions #3

Closed bobbingwide closed 9 years ago

bobbingwide commented 9 years ago

There are times when you want to know which filter functions are active for a particular filter.

Proposed solution

For theme frameworks like 'genesis' the active hooks vary depending on the context, so you can't just produce this output at the start or end of processing. And the complete structure of global $wp_filter is too large to trace in its entirety.

Trace the filter functions

Add Trace the filter functions textarea field to identify the hooks where you want to see the filter functions that are set for the hook.

For each hook listed the trace output will show a summary of the functions registered for the hook. It will show the hook name, the implementing function, the hook priority and the number of parameters expected.

bobbingwide commented 9 years ago

Fixed in v2.0.6 https://github.com/bobbingwide/oik-bwtrace/commit/eba14e04e69ac285a456d143c69c03fd70b88f79