confirm_another_blog_signup

Confirm a new site signup.

Description

confirm_another_blog_signup( (string) $domain, (string) $path, (string) $blog_title, (string) $user_name, (string) $user_email = '', (array) $meta = array(), (int) $blog_id = 0 ); 

Parameters (7)

0. $domain (string)
The domain URL.
1. $path (string)
The site root path.
2. $blog_title (string)
The blog title.
3. $user_name (string)
The user name.
4. $user_email — Optional. (string) => ''
The user's email address.
5. $meta — Optional. (array) => array()
The meta.
6. $blog_id — Optional. (int)
The blog id.

Usage

  1. if ( !function_exists( 'confirm_another_blog_signup' ) ) { 
  2. require_once '/wp-signup.php'; 
  3.  
  4. // The domain URL. 
  5. $domain = ''; 
  6.  
  7. // The site root path. 
  8. $path = ''; 
  9.  
  10. // The blog title. 
  11. $blog_title = ''; 
  12.  
  13. // The user name. 
  14. $user_name = ''; 
  15.  
  16. // The user's email address. 
  17. $user_email = ''; 
  18.  
  19. // The meta. 
  20. $meta = array(); 
  21.  
  22. // The blog id. 
  23. $blog_id = -1; 
  24.  
  25. // NOTICE! Understand what this does before running. 
  26. $result = confirm_another_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta, $blog_id); 
  27.  

Defined (1)

The function is defined in the following location(s).

/wp-signup.php  
  1. function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array(), $blog_id = 0 ) { 
  2.  
  3. if ( $blog_id ) { 
  4. switch_to_blog( $blog_id ); 
  5. $home_url = home_url( '/' ); 
  6. $login_url = wp_login_url(); 
  7. } else { 
  8. $home_url = 'http://' . $domain . $path; 
  9. $login_url = 'http://' . $domain . $path . 'wp-login.php'; 
  10.  
  11. $site = sprintf( '<a href="%1$s">%2$s</a>',  
  12. esc_url( $home_url ),  
  13. $blog_title 
  14. ); 
  15.  
  16. ?> 
  17. <h2><?php 
  18. /** translators: %s: site name */ 
  19. printf( __( 'The site %s is yours.' ), $site ); 
  20. ?></h2> 
  21. <p> 
  22. <?php printf( 
  23. /** translators: 1: home URL, 2: site address, 3: login URL, 4: username */ 
  24. __( '<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as “%4$s” using your existing password.' ),  
  25. esc_url( $home_url ),  
  26. untrailingslashit( $domain . $path ),  
  27. esc_url( $login_url ),  
  28. $user_name 
  29. ); ?> 
  30. </p> 
  31. <?php 
  32. /** 
  33. * Fires when the site or user sign-up process is complete. 
  34. * @since 3.0.0 
  35. */