confirm_user_signup

New user signup confirmation.

Description

confirm_user_signup( (string) $user_name, (string) $user_email ); 

Parameters (2)

0. $user_name (string)
The user name.
1. $user_email (string)
The user's email address

Usage

  1. if ( !function_exists( 'confirm_user_signup' ) ) { 
  2. require_once '/wp-signup.php'; 
  3.  
  4. // The user name. 
  5. $user_name = ''; 
  6.  
  7. // The user's email address 
  8. $user_email = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = confirm_user_signup($user_name, $user_email); 
  12.  

Defined (1)

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

/wp-signup.php  
  1. function confirm_user_signup($user_name, $user_email) { 
  2. ?> 
  3. <h2><?php /** translators: %s: username */ 
  4. printf( __( '%s is your new username' ), $user_name) ?></h2> 
  5. <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p> 
  6. <p><?php /** translators: %s: email address */ 
  7. printf( __( 'Check your inbox at %s and click the link given.' ), '<strong>' . $user_email . '</strong>' ); ?></p> 
  8. <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p> 
  9. <?php 
  10. /** This action is documented in wp-signup.php */