WordPress at a glance
action is not described

wpmu_new_blog action-hook . WP MU

Fires immediately after a new site is created.

Usage

add_action( 'wpmu_new_blog', 'action_function_name_5711', 10, 6 );
function action_function_name_5711( $blog_id, $user_id, $domain, $path, $network_id, $meta ){
	// action...
}
$blog_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.

Notes

  • Since MU (3.0.0)

Where the hook is called

wpmu_create_blog()
wp-includes/ms-functions.php 1245
do_action( 'wpmu_new_blog', $blog_id, $user_id, $domain, $path, $network_id, $meta );

Where the hook is used (in WP core)

wp-includes/ms-default-filters.php 40
add_action( 'wpmu_new_blog', 'wpmu_log_new_registrations', 10, 2 );
wp-includes/ms-default-filters.php 41
add_action( 'wpmu_new_blog', 'newblog_notify_siteadmin', 10, 2 );