Warning: This method has been deprecated. LLMS_Person_Handler::register() is deprecated, in favor of llms_register_user() instead.

LLMS_Person_Handler::register( array $data = array(), string $screen = 'registration', bool $signon = true )

Perform validations according to the registration screen and registers a user


Parameters Parameters

$data

(array) (Optional) Associative array of form data.

Default value: array()

$screen

(string) (Optional) Screen to perform validations for, accepts "registration" or "checkout".

Default value: 'registration'

$signon

(bool) (Optional) If true, also signon the newly created user.

Default value: true


Top ↑

Return Return

(int|WP_Error) WP_User ID on success or WP_Error on failure.


Top ↑

Source Source

File: includes/class.llms.person.handler.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 LLMS_Person_Handler::register() is deprecated, in favor of llms_register_user().
4.5.0 Use wp_signon() in favor of llms_set_person_auth_cookie() to sign on upon registration.
3.19.4 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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