bp_blogs_confirm_blog_signup( string $domain, string $path, string $blog_title, string $user_name, string $user_email = '', string|array $meta = '', int|null $blog_id = null )

Display a message after successful blog registration.

Parameters Parameters


(string) (Required) The new blog's domain.


(string) (Required) The new blog's path.


(string) (Required) The new blog's title.


(string) (Required) The user name of the user who created the blog. Unused.


(string) (Optional) The email of the user who created the blog. Unused.

Default value: ''


(string|array) (Optional) Meta values associated with the new blog. Unused.

Default value: ''


(int|null) (Optional) ID of the newly created blog.

Default value: null

Source Source

File: bp-blogs/bp-blogs-template.php

function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '', $blog_id = null ) {
	switch_to_blog( $blog_id );
	$blog_url  = set_url_scheme( home_url() );
	$login_url = set_url_scheme( wp_login_url() );

	<p class="success"><?php esc_html_e( 'Congratulations! You have successfully registered a new site.', 'buddypress' ) ?></p>
		<?php printf(
			'%s %s',
				/* translators: %s: the link of the new site */
				__( '%s is your new site.', 'buddypress' ),
				sprintf( '<a href="%s">%s</a>', esc_url( $blog_url ), esc_url( $blog_url ) )
				/* translators: 1: Login URL, 2: User name */
				__( '<a href="%1$s">Log in</a> as "%2$s" using your existing password.', 'buddypress' ),
				esc_url( $login_url ),
				esc_html( $user_name )
		); ?>


	 * Fires after the default successful blog registration message markup.
	 * @since 1.0.0
	do_action( 'signup_finished' );

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced $blog_id parameter.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.