I have a plugin that is an installer for my theme and several plugins that work with it. For the sake of discussion, let's call the additional plugins, the "payload".
The only thing I'm missing is how to activate the payload plugins via script (rather than requiring the site owner to manually click "Activate".
I'd also like to deactivate (and delete) the installer plugin once its completed its activation routines (but that's a secondary concern).
Thanks in advance for your help!
Here's what I have so far but its not activating any of the payload plugins:
function payload_activate(){
activate_plugin('my-first-plugin.php');
activate_plugin('my-second-plugin.php');
}
register_activation_hook(__FILE__, 'payload_activate');
activate_plugin
.