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.


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.

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.