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

Home
"), $blog_url, $name, $password); @wp_mail($email, __('New WordPress Site'), $message); }

3939

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

Leave a comment