Where can I find a schema of wordpress plugin core architecture?

There is not much to it, really.

  1. During the loading of WordPress engine wp-settings.php file is processed.

  2. Among other things this files calls wp_get_active_and_valid_plugins() function, that gets list of activated (through admin interface) plugins from active_plugins option (stored in database).

  3. For each active plugin its main file (the one holding plugin header) is included and from there it is up to plugin how it uses Plugins API (more commonly known as hooks) to integrate with WordPress.

Basically it is only a thin layer of active/inactive controls on top of straight PHP include.

Leave a Comment