• how to write a plugin to manage plugins in multisite?
    I need to be able to activate plugins from the network management -> plugins menu

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Do it as a must use plugin. You can use activate_plugin() when the “activate_blog” action fires. There’s also deactivate_plugins(). To manage the plugins by site, use switch_to_blog() since many functions only operate on the current site. Currently active plugins are saved in options under “active_plugins”.

Viewing 1 replies (of 1 total)
  • The topic ‘how to write a plugin to manage plugins in multisite?’ is closed to new replies.