There are times when the existing trace output does not contain the information you need. It would be nice to be able to choose a set of hooks where tracing would be automatically performed.
The information required varies depending on the hook.
Requirement
This Issue covers:
General tracing of the hook and the passed parameters
Tracing of the contents of the global post object
Tracing of the currently registered hook functions is addressed in #3.
Proposed solution
Add some textarea fields in the action options admin page where you type a comma separated list of hooks to trace.
Each textarea field will be for a specific tracing requirement.
For each hook listed a tracing action/filter hook will be added for the required output.
Other hooks to trace
Add Other hooks to trace textarea field in which you type a comma separated list of the hooks where you want to see the parameters passed to the hook.
For each hook listed the action/filter function invoked will be bw_trace_parms().
Trace the global post object
Add Trace the global post object textarea field to identify the hooks where you want to see the contents of the global post object, if set.
For each hook listed the action/filter function invoked will be bw_trace_the_post(). This will trace the values of the global $post variable.
There are times when the existing trace output does not contain the information you need. It would be nice to be able to choose a set of hooks where tracing would be automatically performed. The information required varies depending on the hook.
Requirement
This Issue covers:
Tracing of the currently registered hook functions is addressed in #3.
Proposed solution
Other hooks to trace
Add
Other hooks to trace
textarea field in which you type a comma separated list of the hooks where you want to see the parameters passed to the hook.For each hook listed the action/filter function invoked will be
bw_trace_parms()
.Trace the global post object
Add
Trace the global post object
textarea field to identify the hooks where you want to see the contents of the global post object, if set.For each hook listed the action/filter function invoked will be
bw_trace_the_post()
. This will trace the values of the global $post variable.