after_signup_site action-hookWP 4.4.0

Fires after site signup information has been written to the database.

Usage

add_action( 'after_signup_site', 'wp_kama_after_signup_site_action', 10, 7 );

/**
 * Function for `after_signup_site` action-hook.
 * 
 * @param string $domain     The requested domain.
 * @param string $path       The requested path.
 * @param string $title      The requested site title.
 * @param string $user       The user's requested login name.
 * @param string $user_email The user's email address.
 * @param string $key        The user's activation key.
 * @param array  $meta       Signup meta data. By default, contains the requested privacy setting and lang_id.
 *
 * @return void
 */
function wp_kama_after_signup_site_action( $domain, $path, $title, $user, $user_email, $key, $meta ){

	// action...
}
$domain(string)
The requested domain.
$path(string)
The requested path.
$title(string)
The requested site title.
$user(string)
The user's requested login name.
$user_email(string)
The user's email address.
$key(string)
The user's activation key.
$meta(array)
Signup meta data. By default, contains the requested privacy setting and lang_id.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wpmu_signup_blog()
after_signup_site
wp-includes/ms-functions.php 834
do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 42
add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 );