validate_user_form

Validate user signup name and email.

Description

(array) validate_user_form(); 

Returns (array)

Contains username, email, and error messages.


Usage

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

Defined (1)

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

/wp-signup.php  
  1. function validate_user_form() { 
  2. return wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']);