You appear to be a bot. Output may be restricted
Description
Attach oik-bwtrace to each action that gets invoked by do_actionUses globals:
- $wp_filter is the array of filters and actions
- $wp_actions counts the number of times an action has been performed
- $bw_filter_count
Usage
bw_lazy_trace_actions();
Parameters
Returns
voidSource
File name: oik/includes/oik-bwtrace.incLines:
1 to 17 of 17
function bw_lazy_trace_actions() { global $wp_filter, $wp_actions, $bw_filter_count; //bw_trace2( $wp_filter, "wp_filter" ); //bw_trace2( $wp_actions, "wp_actions" ); $wp_filter_copy = $wp_filter; if ( count( $wp_filter_copy )) { foreach ( $wp_filter_copy as $tag => $actions ) { bw_trace_add_actions( $tag, $actions ); } } // bw_trace( $actions, __FUNCTION__, __LINE__, __FILE__, "last action" ); //add_action( "wp_title", "bw_trace_action", 1000, 5 ); //add_action( "the_content", "bw_trace_action", 1000, 5 ); $bw_filter_count = count( $wp_filter ); // This produces too much trace output //bw_trace( $bw_filter_count, __FUNCTION__, __LINE__, __FILE__, "bw_filter_count" ); }View on GitHub View on Trac