Use the Trace attached hook functions
text area field to enter a comma separated list of selected hooks for which you want to determine the attached hook functions.
Sample trace output
Sample output for the_content
.
wp-content/plugins/oik-bwtrace/includes/bwtrace-actions.php(524:0) bw_trace_attached_hooks(3) 240 0 2019-12-05T16:35:19+00:00 0.335881 0.000235 cf=the_content 9695 34 3254 6291456/6291456 256M F=583 the_content : 0 bw_trace_parms;9 bw_trace_the_post;9 bw_trace_attached_hooks;9 bw_trace_backtrace;9 : 1 oikp_the_content;1 oiksc_the_content;1 : 8 WP_Embed::run_shortcode;1 WP_Embed::autoembed;1 bw_trace_results;9 : 9 do_blocks;1 bw_trace_results;9 oik_do_shortcode;1 : 10 prepend_attachment;1 wp_make_content_images_responsive;1 bw_trace_results;9 : 11 capital_P_dangit;1 do_shortcode_earlier;1 : 20 convert_smilies;1 : 98 wptexturize_blocks;1 : 99 bw_wpautop;1
Notes
- The output shows the priority to which the functions are attached
- The number of parameters expected by the hook is shown after the semi-colon
- For each priority the functions are invoked in the order listed.
- Hooks implemented in methods are prefixed with the class e.g
WP_Embed::run_shortcode;1
- The code also supports anonymous functions showing
Closure
- If tracing is set to
BW_TRACE_VERBOSE
you also get a trace record for theWP_Hook
object, from which the summary is produced.