Any idea why the following code
function my_plugin_load()
{
get_plugins();
}
add_action( 'plugins_loaded', 'my_plugin_load' );
Throws this error?
Fatal error: Call to undefined function get_plugins()
Shouldn't get_plugins()
be defined after the plugins_loaded
hook is fired?
If not, what would be the proper hook to call? (This hook should initiate the plugin's bootstrap/load process)
get_plugins
codex page?