Typical Page Load

In this post I will describe what happens during a typical page request.

The Plugin will be initiated after all other plugins have been loaded, but before the Themes functions.php was loaded.

During the plugins_loaded action, the follwing Hooks may be called:

sfw/installing when no valid configuration is found

OR

sfw/init/failed when the configuration is found, but not working. Maybe the case when API is unreachable. You may use this to activate maintance mode on your website.

OR

sfw/before_init and sfw/init in case the Plugin was loaded successfully. You almost ever want to use the latter when extending the plugin functionality.


Finally the sfw/init/always action will fire, no matter the state of the plugin.