[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-2021
if ( !defined( 'OIK_BOOT_INCLUDED' ) ) {
define( 'OIK_BOOT_INCLUDED', "3.2.6" );
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 – oik information kit
      Version: 4.8.2
      Deprecated?: No
      API Letters: B,L,O,P

      Published: February 2, 2018 | Last updated: February 2, 2018

      Information

      File name: libs/oik_boot.php
      Plugin ref: oik – oik information kit
      Version: 4.8.2
      Deprecated?: No
      API Letters: B,L,O,P

      Recent plugin updates

      oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
      sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
      SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
      oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...
      oik-types v2.3.0 Update to oik-types v2.3.0 for improved control over sort order on archives ...

      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

      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-2023. All rights reserved.


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