llms_update_user( array $data = array(), string $location = 'account', array $args = array() )
Update a user.
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: 'account'
Default value: 'account'
- $args
-
(array) (Optional) Additional arguments passed to the short-circuit filter.
Default value: array()
Return Return
(int|WP_Error) WP_User ID on success or error object on failure.
Source Source
File: includes/functions/llms.functions.person.php
* * @param string $user_login Username. * @param WP_User $user WP_User object of the logged-in user.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Updated to utilize LLMS_Form_Handler class. |
3.7.0 | Unknown. |
3.0.0 | Introduced. |