Deprecated Deprecated
This hook has been deprecated. Use ‘wp_insert_site’ instead.
Summery Summery
Fires immediately after a new site is created.
Syntax Syntax
Parameters Parameters
- $site_id
-
Site ID.
- $user_id
-
User ID.
- $domain
-
Site domain.
- $path
-
Site path.
- $network_id
-
Network ID. Only relevant on multi-network installations.
- $meta
-
Meta data. Used to set initial site options.
Source Source
File: wp-includes/ms-site.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Use 'wp_insert_site' instead. |
MU (3.0.0) | Introduced. |