Fires immediately after a new site is created.
Parameters
$site_id
int- Site ID.
$user_id
int- User ID.
$domain
string- Site domain.
$path
string- Site path.
$network_id
int- Network ID. Only relevant on multi-network installations.
$meta
array- Meta data. Used to set initial site options.
Source
do_action_deprecated(
'wpmu_new_blog',
array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
'5.1.0',
'wp_initialize_site'
);
Changelog
Version | Description |
---|---|
5.1.0 | Use 'wp_initialize_site' instead. |
MU (3.0.0) | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.