[wp-trac] [WordPress Trac] #41233: Plugin activation / deactivation is a pain for network.

WordPress Trac noreply at wordpress.org
Mon Jul 3 18:25:33 UTC 2017


#41233: Plugin activation / deactivation is a pain for network.
--------------------------------+-----------------------------
 Reporter:  MaximeCulea         |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 I think plugin activation / deactivation is a pain for network, as hooks
 are not correctly launched.

 Even if the `$network_wide` parameter passed to the
 activation/deactivation hook determines whatever to do, there are still
 cases when it's not working.

 We also have to think about one though, which is when creating a new site.
 It's indeed tricky.

 I am using this [[https://wordpress.org/plugins/proper-network-
 activation/|plugin]] to manage this, and some times I am doing it
 programmatically, which is the next way :

 I do it by using REST API and/or cron, to iterate each sites of the
 network for wanted plugin activation / deactivation.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41233>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list