[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
You are here: Home / WordPress plugins from oik-plugins / FREE oik plugins / oik-lib: shared library management / Shared dependency – real example

Shared dependency – real example

Example of oik-lib shared dependency showing shared libraries loaded for oik-bwtrace admin pages
a3 [ style=dotted ]; c3->b3 [ style=dotted ]; 3->1 [dir=back ]; 3->2 [dir=back]; 3 -> c3; 3 -> f; f -> e [ style=dotted]; a1 [ label=”oik_boot” style=dashed ]; b [label=”bwtrace” style=dashed ]; d [label=”bobbfunc”]; e [label=”bobbforms”]; f [ label=”oik-admin” ]; a2 [ style=dashed label=”oik_boot”]; b2 [style=dashed label=”bwtrace”]; d2 [style=dashed label=”bobbfunc” ]; e2 [ style=dashed label=”bobbforms” ]; f2 [ style=dashed label=”oik-admin” ]; 1 -> a1 [dir=none style=invis]; 1 -> b [style=invis]; e -> d [ style=dotted]; 1 -> f [ style=invis]; 2 -> a2 [dir=none style=invis]; 2 -> b2 [style=invis]; e2 -> d2 [ style=invis]; 2 -> f2 [ style=invis]; f2 -> e2 [ style=invis]; subgraph cluster_3 { style=filled color=gray95; 3; a3; b3; c3; } subgraph cluster_1 { style=filled; color=lightgrey; 1; a1; b; d; e; f; rankdir=”TB”;} subgraph cluster_2 { 2; a2; b2; d2; e2; f2; rankdir=”TB”; color=gray97; style=filled;} [/bw_graphviz] –>

Scenario

  • oik-lib is running as a Must-Use (MU) plugin
  • oik and oik-bwtrace are both activated
  • oik-bwtrace is not operating in Must-Use (MU) mode
  • the bwtrace library is not loaded by wp-config.php
  • Admin user visits Settings > oik trace options

Shared library loading

  • oik-lib MU plugin loads the oik-lib library and invokes oik_lib_boot()
  • oik_lib_boot() loads “oik_boot” and “bwtrace” libraries
  • When the plugins are loaded each of them registers their filter function responding to oik_query_libs filter to indicate which libraries they offer. The priorities are such that oik trumps oik-lib and oik-bwtrace; ie. oik’s libraries are listed first
  • When oik-bwtrace requires the oik-admin library, this is therefore served from the oik plugin
If the oik plugin was not activated then the library files would be served from oik-bwtrace.

Published: July 31, 2015 | Last updated: July 31, 2015

Information

Component:
  • oik-lib: shared library management
Letters: S

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: oikplug@oik-plugins.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