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.
Parameters Parameters
- $data
-
(array) (Optional) Array of user data.
Default value: array()
- $location
-
(string) (Optional) (Optional) screen to perform validations for, accepts "account" or "checkout". Default value: 'checkout'
Default value: 'checkout'
- $args
-
(array) (Optional) Additional arguments passed to the short-circuit filter.
Default value: array()
Return Return
(boolean|WP_Error) Returns true
if the user data passes validation, otherwise returns an error object describing the validation issues.
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.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |