Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Take a look at

function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false );

in wp-admin/includes/plugin.php

share|improve this answer
    
Thanks Bainternet! I don't think I'll need this now after all, since I found the solution (wordpress.stackexchange.com/questions/15143/…) to the problem that I was going to use this as a workaround for, but it will definitely come in handy in the future. –  Scott B Apr 19 '11 at 21:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.