To use this framework in a theme or to use a scb-powered plugin loaded from a theme (require( 'plugins/plugin.php' );), the plugins_loaded hook should be changed to after_setup_theme. It makes semantically less sense but covers more of these use cases. I suspect backwards compat could be an issue though.
To use this framework in a theme or to use a scb-powered plugin loaded from a theme (
require( 'plugins/plugin.php' );
), the plugins_loaded hook should be changed toafter_setup_theme
. It makes semantically less sense but covers more of these use cases. I suspect backwards compat could be an issue though.