[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_trace_plugin_startup() – Startup processing for oik-bwtrace

You appear to be a bot. Output may be restricted

Description

Startup processing for oik-bwtrace

Usage

bw_trace_plugin_startup();

Parameters

Returns

void

TO 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 so

Source

File name: oik-bwtrace/oik-bwtrace.php
Lines:

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

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Published: November 1, 2016 | Last updated: November 14, 2017

Information

Function name: bw_trace_plugin_startup
Plugin ref: oik-bwtrace – debug trace for WordPress
Version: 3.0.0-RC2
Sourcefile: oik-bwtrace.php
File ref: oik-bwtrace.php
Deprecated?: No
API Letters: B,P,S,T

Recent plugin updates

oik-bwtrace v3.0.0 Use oik-bwtrace v3.0.0 to trace your WordPress server's activity including AJAX, REST and command line. ...
oik-bwtrace v3.0.0-RC2 oik-bwtrace v3.0.0-RC2 includes fixes for many more issues.  ...
oik v3.3.7 

oik v3.3.7 fixes a problem introduced in 3.3.6

 ...
oik-bob-bing-wide v1.32.0 

Update for improvements to the [bw_plug] shortcode… used on blocks.wp-a2z.org

 ...
oik v3.3.6 Upgrade to oik v3.3.6 for improved compatibility with the WordPress Block editor. ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2019. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 5.3. PHP: 7.2.20. Memory limit: 768M