#41627 closed feature request (wontfix)
Additional parameter for multisite activation
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.8.1 |
| Component: | Plugins | Keywords: | close |
| Focuses: | administration, multisite | Cc: |
Description
It could be good, if there was something additional parameter, which made
'register_activation_hook' function to be executed per individual sub-sites, while activating it from Network dashboard.
that is good, because i.e. in activation hook, we want sometimes to create tables, add options ( and etc) per each sub-site.
Change History (4)
Note: See
TracTickets for help on using
tickets.
@tazotodua You can already handle this in plugins by checking the
$network_wideparameter in the activation callback and looping through each site when needed, for example:This covers the use case for running activation logic on each sub-site during a network activation. If you have a different requirement that this approach can't solve, please share more details so the ticket can be reopened.