Warning: This function has been deprecated. use ‘llms_register_user’ instead

llms_create_new_person( string $email, string $email2, string $username = '', string $firstname = '', string $lastname = '', string $password = '', string $password2 = '', string $billing_address_1 = '', string $billing_address_2 = '', string $billing_city = '', string $billing_state = '', string $billing_zip = '', string $billing_country = '', string $agree_to_terms = '',  $phone = '' )

Creates new user


Description Description


Parameters Parameters

$email

(string) (Required) [user email]

$email2

(string) (Required) [user verify email]

$username

(string) (Optional) [username]

Default value: ''

$firstname

(string) (Optional) [user first name]

Default value: ''

$lastname

(string) (Optional) [user last name]

Default value: ''

$password

(string) (Optional) [user password]

Default value: ''

$password2

(string) (Optional) [user verify password]

Default value: ''

$billing_address_1

(string) (Optional) [user billing address 1]

Default value: ''

$billing_address_2

(string) (Optional) [user billing address 2]

Default value: ''

$billing_city

(string) (Optional) [user billing city]

Default value: ''

$billing_state

(string) (Optional) [user billing state]

Default value: ''

$billing_zip

(string) (Optional) [user billing zip]

Default value: ''

$billing_country

(string) (Optional) [user billing country]

Default value: ''

$agree_to_terms

(string) (Optional) [agree to terms checkbox bool]

Default value: ''


Top ↑

Return Return

(int) $person_id [ID of the user created]


Top ↑

Source Source

File: includes/functions/llms.functions.person.php

function llms_create_new_person( $email, $email2, $username = '', $firstname = '', $lastname = '', $password = '', $password2 = '', $billing_address_1 = '', $billing_address_2 = '', $billing_city = '', $billing_state = '', $billing_zip = '', $billing_country = '', $agree_to_terms = '', $phone = '' ) {
	llms_deprecated_function( 'llms_create_new_person', '3.0.0', 'llms_register_user' );
	return llms_register_user( array(
		'email_address' => $email,
		'email_address_confirm' => $email2,
		'user_login' => $username,
		'first_name' => $firstname,
		'last_name' => $lastname,
		'password' => $password,
		'password_confirm' => $password2,
		'llms_billing_address_1' => $billing_address_1,
		'llms_billing_address_2' => $billing_address_2,
		'llms_billing_city' => $billing_city,
		'llms_billing_state' => $billing_state,
		'llms_billing_zip' => $billing_zip,
		'llms_billing_country' => $billing_country,
		'llms_phone' => $phone,
		'terms' => $agree_to_terms,
	) );
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: