#41627 closed feature request (wontfix)
Additional parameter for multisite activation
| Reported by: | tazotodua | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | 4.8.1 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: | administration, multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@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.