Can one plugin activate another plugin via script?
I know its possible to deactivate known plugins via script, but can't find any examples of how to activate them.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityCan one plugin activate another plugin via script?
I know its possible to deactivate known plugins via script, but can't find any examples of how to activate them.
Take a look at
function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false );
in wp-admin/includes/plugin.php