Network Plugins Auto Active/Deactive (1 post)

  1. xpto
    Posted 3 years ago #


    There is any way that one plugin when is network admin activated can activate other plugins by code?!?

    I need that one plugin activate other network plugins. I can do this in functions.php, but when I do this in one plugin file the code just doesn't work, it seems that function activate_plugin() doesn't work.

    Same if I try deactivate_plugins(). In functions.php works perfect, in plugin not.

    note: I require plugin.php in plugin code...

    Thanks for help!

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Topic