Skip to content
scribu edited this page Jul 16, 2012 · 2 revisions

The scbLoad4 class ensures that only one version of the classes are loaded. Also, it attempts to load the most recent version available.

Here's a general overview of how it works:

  1. Hook into 'plugins_loaded' and wait for all possible candidates* to load.
  2. Choose the candidate with the most recent version.
  3. Fire plugin activation hooks, if necessary. ← this is the trickiest part

* A candidate is a folder containing the scbFramework classes.

Clone this wiki locally