WordPress at a glance
function is not described

confirm_another_blog_signup() WP 3.0.0

Confirm a new site signup.

  • Since 4.4.0 Added the $blog_id parameter.
Hooks in function
Return

Nothing (null).

Usage

confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email, $meta, $blog_id );
$domain(string) (required)
The domain URL.
$path(string) (required)
The site root path.
$blog_title(string) (required)
The site title.
$user_name(string) (required)
The username.
$user_email(string)
The user's email address.
Default: ''
$meta(array)
Any additional meta from the 'add_signup_meta' filter in validate_blog_signup().
Default: array()
$blog_id(int)
The site ID.
Default: 0

Code of confirm another blog signup: wp-signup.php VER 5.1.1

<?php
function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array(), $blog_id = 0 ) {

	if ( $blog_id ) {
		switch_to_blog( $blog_id );
		$home_url  = home_url( '/' );
		$login_url = wp_login_url();
		restore_current_blog();
	} else {
		$home_url  = 'http://' . $domain . $path;
		$login_url = 'http://' . $domain . $path . 'wp-login.php';
	}

	$site = sprintf(
		'<a href="%1$s">%2$s</a>',
		esc_url( $home_url ),
		$blog_title
	);

	?>
	<h2>
	<?php
		/* translators: %s: site name */
		printf( __( 'The site %s is yours.' ), $site );
	?>
	</h2>
	<p>
		<?php
		printf(
			/* translators: 1: link to new site, 2: login URL, 3: username */
			__( '%1$s is your new site. <a href="%2$s">Log in</a> as &#8220;%3$s&#8221; using your existing password.' ),
			sprintf(
				'<a href="%s">%s</a>',
				esc_url( $home_url ),
				untrailingslashit( $domain . $path )
			),
			esc_url( $login_url ),
			$user_name
		);
		?>
	</p>
	<?php
	/**
	 * Fires when the site or user sign-up process is complete.
	 *
	 * @since 3.0.0
	 */
	do_action( 'signup_finished' );
}