create_user

An alias of wp_create_user().

Description

(int) create_user( (string) $username, (string) $password, (string) $email ); 

Returns (int)

The new user's ID.

Parameters (3)

0. $username (string)
The user's username.
1. $password (string)
The user's password.
2. $email (string)
The user's email.

Usage

  1. if ( !function_exists( 'create_user' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // The user's username. 
  5. $username = ''; 
  6.  
  7. // The user's password. 
  8. $password = ''; 
  9.  
  10. // The user's email. 
  11. $email = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = create_user($username, $password, $email); 
  15.  

Defined (1)

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

/wp-includes/deprecated.php  
  1. function create_user($username, $password, $email) { 
  2. _deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' ); 
  3. return wp_create_user($username, $password, $email);