Update a user’s attribute
There is no need to serialize values, they will be serialized if it is needed. The metadata key can only be a string with underscores. All else will be removed.
Will remove the attribute, if the meta value is empty.
Parameters
Name | Type | Description |
---|---|---|
$user_id | int | User ID |
$meta_key | string | Metadata key. |
$meta_value | mixed | Metadata value. |
Return Value
bool: True on successful update, false on failure.