WordPress at a glance
action is not described

wpmu_new_blog action-hook . WP MU

Fires immediately after a new site is created.


add_action( 'wpmu_new_blog', 'action_function_name_7097', 10, 6 );
function action_function_name_7097( $blog_id, $user_id, $domain, $path, $network_id, $meta ){
	// action...
Site ID.
User ID.
Site domain.
Site path.
Network ID. Only relevant on multi-network installations.
Meta data. Used to set initial site options.


  • Since MU (3.0.0)

Where the hook is called

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 );