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


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

		$roles = array();
	}

	if ( ! array_intersect( $user->get_user()->roles, $roles ) ) {
		return false;
	}

	if ( $post_id && ! user_can( $user->get( 'id' ), 'edit_post', $post_id ) ) {
		return false;
	}

	return true;

}

/**
 * Checks LifterLMS user capabilities against an object
 *
 * @since 3.13.0
 * @since 4.5.0 Use strict array comparison.
 *
 * @param string $cap    Capability name.

Top ↑

User Contributed Notes User Contributed Notes

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