validate_user_signup

Validate the new user signup.

Description

validate_user_signup(); 

Usage

  1. if ( !function_exists( 'validate_user_signup' ) ) { 
  2. require_once '/wp-signup.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = validate_user_signup(); 
  7.  

Defined (1)

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

/wp-signup.php  
  1. function validate_user_signup() { 
  2. $result = validate_user_form(); 
  3. $user_name = $result['user_name']; 
  4. $user_email = $result['user_email']; 
  5. $errors = $result['errors']; 
  6.  
  7. if ( $errors->get_error_code() ) { 
  8. signup_user($user_name, $user_email, $errors); 
  9. return false; 
  10.  
  11. if ( 'blog' == $_POST['signup_for'] ) { 
  12. signup_blog($user_name, $user_email); 
  13. return false; 
  14.  
  15. /** This filter is documented in wp-signup.php */ 
  16. wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); 
  17.  
  18. confirm_user_signup($user_name, $user_email); 
  19. return true;