llms_validate_user( array $data = array(), string $location = 'checkout', array $args = array() )

Performs validations for submitted user data.

Description Description

The related functions llms_update_user() and llms_register_user() automatically perform validations so this method should only be used if you wish to test updates / registration without actually performing the registration or update action.

Top ↑

Parameters Parameters


(array) (Optional) Array of user data.

Default value: array()


(string) (Optional) (Optional) screen to perform validations for, accepts "account" or "checkout". Default value: 'checkout'

Default value: 'checkout'


(array) (Optional) Additional arguments passed to the short-circuit filter.

Default value: array()

Top ↑

Return Return

(boolean|WP_Error) Returns true if the user data passes validation, otherwise returns an error object describing the validation issues.

Top ↑

Source Source

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

 * @param int    $product_id  WP Post ID of the Course or Membership.
 * @param string $new_status  The value to update the new status with after removal is complete.
 * @param string $trigger     Only remove the student if the original enrollment trigger matches the submitted value.
 *                            Passing "any" will remove regardless of enrollment trigger.

Top ↑

Changelog Changelog

Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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