You appear to be a bot. Output may be restricted
Description
Startup processing for oik-bwtrace
Usage
bw_trace_plugin_startup();
Parameters
Returns
voidTO DO
Implementation doesn't match comments. What should happen when "ip" is set in the trace profile? Activate trace if the profile says so AND if the chosen IP address is being used OR if there's no REMOTE_ADDR and the value for trace_ip matches the value for PHP CLI processing. Activate action hooks and filter counting or other action tracing if the profile says soSource
File name: oik-bwtrace/oik-bwtrace.phpLines:
1 to 43 of 43
function bw_trace_plugin_startup() { oik_require( "includes/class-BW-trace-controller.php", "oik-bwtrace" ); global $bw_trace; $bw_trace = new BW_trace_controller(); global $bw_action_options; $bw_action_options = get_option( 'bw_action_options' ); $tracing = bw_trace_status(); if ( $tracing ) { $bw_trace_level = bw_trace_level(); bw_trace_on(); } else { bw_trace_off(); } if ( $tracing ) { /* * If we want to trace hook counting then we can start quite early */ if ( defined( "BW_COUNT_ON" ) && true == BW_COUNT_ON ) { oik_require( "includes/oik-action-counts.php", "oik-bwtrace" ); bw_trace_count_plugins_loaded( true ); $count_hooks = true; } else { oik_require( "includes/oik-action-counts.php", "oik-bwtrace" ); $count_hooks = bw_array_get( $bw_action_options, "count", false ); bw_trace_activate_mu( $count_hooks ); bw_trace_count_plugins_loaded( $count_hooks ); } if ( $count_hooks ) { add_action( "plugins_loaded", "bw_trace_count_plugins_loaded" ); add_action( "muplugins_loaded", "bw_trace_count_plugins_loaded" ); } } if ( $tracing ) { bw_trace_trace_startup(); } add_action( "wp_loaded", "oik_bwtrace_plugins_loaded", 9 ); add_filter( "oik_query_libs", "oik_bwtrace_query_libs", 12 ); //add_filter( "get_the_generator_xhtml", "oik_bwtrace_get_the_generator", 10, 2 ); }View on GitHub View on Trac