confirm_another_blog_signup

The timeline below displays how wordpress function confirm_another_blog_signup has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.9

/**
 * Shows a message confirming that the new site has been created.
 *
 * @since MU (3.0.0)
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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 title. */
    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');
}

WordPress Version: 5.3

/**
 * Confirm a new site signup.
 *
 * @since MU (3.0.0)
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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 title. */
    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');
}

WordPress Version: 5.1

/**
 * Confirm a new site signup.
 *
 * @since MU (3.0.0)
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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');
}

WordPress Version: 4.9

/**
 * Confirm a new site signup.
 *
 * @since MU (3.0.0)
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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');
}

WordPress Version: 4.6

/**
 * Confirm a new site signup.
 *
 * @since MU
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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: home URL, 2: site address, 3: login URL, 4: username */
        __('<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.'),
        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');
}

WordPress Version: 4.5

/**
 * Confirm a new site signup.
 *
 * @since MU
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain     The domain URL.
 * @param string $path       The site root path.
 * @param string $blog_title The site title.
 * @param string $user_name  The username.
 * @param string $user_email The user's email address.
 * @param array  $meta       Any additional meta from the 'add_signup_meta' filter in validate_blog_signup().
 * @param int    $blog_id    The site ID.
 */
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 
    printf(__('The site %s is yours.'), $site);
    ?></h2>
	<p>
		<?php 
    printf(__('<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.'), 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');
}

WordPress Version: 4.4

/**
 * Confirm a new site signup
 *
 * @since MU
 * @since 4.4.0 Added the `$blog_id` parameter.
 *
 * @param string $domain The domain URL
 * @param string $path The site root path
 * @param string $blog_title The blog title
 * @param string $user_name The username
 * @param string $user_email The user's email address
 * @param array  $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()
 * @param int    $blog_id The blog ID
 */
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 
    printf(__('The site %s is yours.'), $site);
    ?></h2>
	<p>
		<?php 
    printf(__('<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.'), 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');
}

WordPress Version: 3.7

/**
 * Confirm a new site signup
 *
 * @since MU
 *
 * @param string $domain The domain URL
 * @param string $path The site root path
 * @param string $user_name The username
 * @param string $user_email The user's email address
 * @param array $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()
 */
function confirm_another_blog_signup($domain, $path, $blog_title, $user_name, $user_email = '', $meta = array())
{
    ?>
	<h2><?php 
    printf(__('The site %s is yours.'), "<a href='http://{$domain}{$path}'>{$blog_title}</a>");
    ?></h2>
	<p>
		<?php 
    printf(__('<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.'), $domain . $path, $domain . $path, "http://" . $domain . $path . "wp-login.php", $user_name);
    ?>
	</p>
	<?php 
    /**
     * Fires when the site or user sign-up process is complete.
     *
     * @since 3.0.0
     */
    do_action('signup_finished');
}