[wp-trac] [WordPress Trac] #27289: Add populate_network action
WordPress Trac
noreply at wordpress.org
Fri Oct 17 15:03:25 UTC 2025
#27289: Add populate_network action
---------------------------------------------+-----------------------------
Reporter: rmccue | Owner:
| johnjamesjacoby
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Networks and Sites | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: multisite
---------------------------------------------+-----------------------------
Changes (by johnjamesjacoby):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"60954" 60954]:
{{{
#!CommitTicketReference repository="" revision="60954"
Networks and Sites: introduce 3 new actions inside the
`populate_network()` function.
* `before_populate_network`
* `after_populate_network`
* `after_upgrade_to_multisite`
These hooks are strategically located to allow the execution of custom
code before & after a new multisite network is created, as well as after
the first time a single-site installation is upgraded to multisite.
This change also includes a set of unit tests via a new
`Tests_Multisite_PopulateNetworkHooks` class, to confirm that these hooks
are executing when and as intended.
Props jeremyfelt, johnjamesjacoby, Mista-Flo, spacedmonkey, sukhendu2002,
rmccue, rollybueno.
Fixes #27289.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27289#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list