[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

libs/oik_boot.php


Lines:

1 to 71 of 71
<?php // (C) Copyright Bobbing Wide 2012-2018
if ( !defined( 'OIK_BOOT_INCLUDED' ) ) {
define( 'OIK_BOOT_INCLUDED', "3.2.5" );
define( 'OIK_BOOT_FILE', __FILE__ );

/**
 * Library: oik_boot
 * Provides: oik_boot
 * Type: MU
 *
 * Implements shared library functions that each plugin that uses oik may expect to be loaded
 * so that it doesn't have to load these itTelf. 
 * 
 */


if ( !function_exists( 'oik_path' ) ) {
  if ( !defined('ABSPATH') ) {
    $abspath = dirname( dirname( dirname ( dirname( dirname( __FILE__ ))))) . '/';
    $abspath = str_replace( "\\", "/", $abspath );
    if ( ':' === substr( $abspath, 1, 1 ) ) {
      $abspath = ucfirst( $abspath );
    }
    define( 'ABSPATH', $abspath );
  }
  if ( !defined('WP_CONTENT_DIR') ) {
    define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
  }        
  if ( !defined('WP_PLUGIN_DIR') ) {
    define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
  }
/* function oik_path() – Return the path of the oik base plugin or any particular file */
}

if (!function_exists( 'oik_require' )) {
/* function oik_require() – Invoke require_once on an oik include file or other file */
} 

if( !function_exists( "oik_require2" )) {
/* function oik_require2() – Load a file which could have been relocated from one plugin to another */
}
  
if ( !function_exists( "oik_init" ) ) {
/* function oik_init() – load up the functions required to allow use of the bw/oik API */
} 
 
if ( !function_exists( 'bw_array_get' ) ) {
/* function bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set */
}

if ( !function_exists( "oik_require_lib" ) ) { 
/* function oik_require_lib() – Require a library */
}

//if ( !function_exists( "oik_require_lib_fallback" ) ) {
/* function oik_require_lib_fallback() – Load the library from fallback directories */
//}

/* function oik_lib_fallback() – Set a(nother) fallback directory for shared library processing */

if ( !function_exists( "oik_require_file" ) ) { 
/* function oik_require_file() – Require a file in a library */
}

if ( !function_exists( "bw_log" ) ) {
/* function bw_log() – Dormant logging function */
}


} /* end if !defined */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: libs/oik_boot.php
      Plugin ref: oik-bwtrace – debug trace for WordPress
      Version: 3.2.0
      Deprecated?: No
      API Letters: B,L,O,P

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

      Information

      File name: libs/oik_boot.php
      Plugin ref: oik-bwtrace – debug trace for WordPress
      Version: 3.2.0
      Deprecated?: No
      API Letters: B,L,O,P

      Recent plugin updates

      oik-themes v1.4.0 

      Update to oik-themes v1.4.0 to support Full Site Editing (FSE) themes. FSE themes, which are currently experimental, deliver block based templates and template parts.

       ...
      oik-clone v2.0.1 oik-clone v2.0.1 contains a fix for a 500 internal server error being produced when cloning content with certain taxonomy terms. ...
      SB Chart block v0.1.1 

      Update to SB Chart block v0.1.1 for improved enqueing of the chart.js Javascript and better colours in the Gutenberg palette.

       ...
      Slog v1.3.1 

      Update to Slog v1.3.1 for a new Driver tab and improved display of charts grouping Elapsed times.

       ...
      SB-Chart-Block v0.0.8 SB-Chart-Block v0.0.8, a WordPress single block plugin, supports 4 different chart types; Line, Bar, Horizontal bar and Pie. ...

      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: [email protected]

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

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


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins