• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

[oik] plugins.com

WordPress plugins and themes

  • 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

You appear to be a bot. Output may be restricted

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

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

Primary Sidebar

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-fields v1.55.1
oik-fields v1.55.1 oik-fields v1.55.1 has been tested with WordPress 7.1. ...
oik v4.16.0
oik v4.16.0 Upgrade to oik v4.16.0 for many accessibility (a11y) improvements for both the front end and admin areas, plus a security fix. ...
oik-fields v1.55.0
oik-fields v1.55.0 Upgrade to oik-fields v1.55.0 for accessibility improvements to the featured image virtual field. ...
oik-css v2.4.0
oik-css v2.4.0 Upgrade to oik-css v2.4.0 for accessibility improvements for Low Color Contrast errors. ...
oik-unloader v0.4.0
oik-unloader v0.4.0 Update to oik-unloader v0.4.0 for improved accessibility of the active-plugins shortcode. Tested with WordPress 6.9 and PHP 8.4 ...

Footer

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


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

WordPress version: 7.1.2

Gutenberg version: 24.0.0

PHP version: 8.2.35