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()


Top ↑

Return Return

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


Top ↑

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.


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Updated to utilize LLMS_Form_Handler class.
3.7.0 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.