wpsc_add_new_user

WPSC add new user function, validates and adds a new user, for the.

Description

(int) wpsc_add_new_user( (string) $user_login, (string) $user_pass, (string) $user_email ); 

Returns (int)

The new user's ID.

Parameters (3)

0. $user_login (string)
The user's username.
1. $user_pass (string)
The user's password.
2. $user_email — Optional. (string)
The user's email (optional).

Usage

  1. if ( !function_exists( 'wpsc_add_new_user' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-includes/misc.functions.php'; 
  3.  
  4. // The user's username. 
  5. $user_login = ''; 
  6.  
  7. // The user's password. 
  8. $user_pass = ''; 
  9.  
  10. // The user's email (optional). 
  11. $user_email = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = wpsc_add_new_user($user_login, $user_pass, $user_email); 
  15.  

Defined (1)

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

/wpsc-includes/misc.functions.php