On this page
do_action( 'wp_initialize_site', WP_Site $new_site, array $args )
Fires when a site’s initialization routine should be executed.
Parameters
$new_siteWP_Site-
New site object.
$argsarray-
Arguments for the initialization.
Source
File: wp-includes/ms-site.php. View all references
do_action( 'wp_initialize_site', $new_site, $args );
Related
Used By
| Used By | Description |
|---|---|
| wp_insert_site() wp-includes/ms-site.php | Inserts a new site into the database. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_initialize_site