[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

oik_load_wordpress_prerequisites() – Load WordPress pre-requisite files in order to load a plugin

Description

Load WordPress pre-requisite files in order to load a plugin

This function was created by trial and error while attempting to load "easy-digital-downloads" WooCommerce was an easier plugin to load.

Counted things oik-batch oik-load woocommerce EDD jetpack
User functions 625 775 1006 1337 784
Classes 151 155 182 174 171
Included files 21 28 69 84 51
User constants 13 43 50 48 52
The initial User functions and Classes count varies depending on the version of PHP With PHP 5.3.5 it's a much lower value than PHP 5.5.7 PHP version:5.5.7,Internal: 2115,User: 0,Classes: 170 PHP version:5.3.5,Internal: 1570,User: 0,Classes: 138

Usage

oik_load_wordpress_prerequisites();

Parameters

Returns

void

TO DO

Can we convert backticks to <pre> after esc_html() ?

Source

File name: oik-batch/oik-load.php
Lines:
1 to 34 of 34
function oik_load_wordpress_prerequisites() { 
  //pf( "Loading WordPress prerequisites ");
  require( ABSPATH . WPINC . "/default-constants.php" );
  /*
   * These can't be directly globalized in version.php. When updating,
   * we're including version.php from another install and don't want
   * these values to be overridden if already set.
   */
  global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
  require( ABSPATH . WPINC . '/version.php' );
  //pf( "Running wp_initial_constants" );
  wp_initial_constants();
  //pf( "Running require_wp_db" );
  
  oikai_api_status_timer( false, "wp_initial_constants" );
  require_wp_db();
  
  oikai_api_status_timer( false, "after require_wp_db" );
  //pf( "Running wp_set_wpdb_vars" );
  wp_set_wpdb_vars();
  
  oikai_api_status_timer( false, "after wp_set_wpdb_vars" );
  //pf( "Running wp_start_object_cache" );
  //require( ABSPATH . WPINC . "/cache.php" );
  wp_start_object_cache();
  //pf( "Running wp_plugin_directory_constants" );
  wp_plugin_directory_constants();
  require( ABSPATH . WPINC . "/link-template.php" );
  oikai_api_status_timer( false, "after link-template.php" );
  require( ABSPATH . WPINC . "/shortcodes.php" );
  require( ABSPATH . WPINC . "/widgets.php" );
  // pf( "Running wp_set_lang_dir" );
  wp_set_lang_dir();
}  
 
 View on GitHub

Called by

1 to 1 of 1
  • oik_load_loaded() – Load a plugin’s file and report how many files were loaded and how many new functions were defined

Invoked by

    Calls

    1 to 1 of 1
    • oikai_api_status_timer() – Report the current status of the system with timing

    Call hooks

    Function name: oik_load_wordpress_prerequisites
    Plugin ref: oik-batch
    Version: 1.0.0
    Sourcefile: oik-load.php
    File ref: oik-load.php
    Deprecated?: No
    API Letters: L,O,P,W

    Published: March 14, 2017 | Last updated: March 14, 2017

    Information

    Function name: oik_load_wordpress_prerequisites
    Plugin ref: oik-batch
    Version: 1.0.0
    Sourcefile: oik-load.php
    File ref: oik-load.php
    Deprecated?: No
    API Letters: L,O,P,W

    Recent plugin updates

    oik-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
    SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
    oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
    oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
    oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

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


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

    WordPress version: 6.8.3

    Gutenberg version: 21.7.0

    PHP version: 8.2.29