function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {}


  • string $blog_title: Blog title.
  • string $blog_url: Blog url.
  • int $user_id: User ID.
  • string $password: User’s Password.

Source code

function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {

	$user = new WP_User($user_id);

	$email = $user->user_email;

	$name = $user->user_login;

	$message = sprintf(__("Your new WordPress site has been successfully set up at:


You can log in to the administrator account with the following information:

Username: %2\$s

Password: %3\$s

We hope you enjoy your new site. Thanks!

--The WordPress Team


"), $blog_url, $name, $password);

	@wp_mail($email, __('New WordPress Site'), $message);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: