Advertisements

wp_new_blog_notification

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

Parameters

  • 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:



%1\$s



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

http://wordpress.org/

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



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

}

3939

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: