do_action_deprecated( 'wpmu_new_blog', int $site_id, int $user_id, string $domain, string $path, int $network_id, array $meta )
- Since
- MU (3.0.0)
Fires immediately after a new site is created.
Compatibility
Deprecated in WordPress 5.1.0. Use {@see 'wp_initialize_site'} instead.
- WordPress
- since MU (3.0.0)
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$site_idint- Site ID.
$user_idint- User ID.
$domainstring- Site domain.
$pathstring- Site path.
$network_idint- Network ID. Only relevant on multi-network installations.
$metaarray- Meta data. Used to set initial site options.
Where this hook fires · 1
wp-includes/ms-site.php:137wp_insert_site()
Source code
* @param int $user_id User ID. * @param string $domain Site domain. * @param string $path Site path. * @param int $network_id Network ID. Only relevant on multi-network installations. * @param array $meta Meta data. Used to set initial site options. */ 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
Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.1.0
Deprecated. Use 'wp_initialize_site' instead.from the docblock
MU (3.0.0)
MU (3.0.0)from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.