update_usermeta


update_usermeta ( $user_id, $meta_key, $meta_value )

Parameters:
  • (int) $user_id User ID
  • (string) $meta_key Metadata key.
  • (mixed) $meta_value Metadata value.
See:
Returns:
  • (bool) True on successful update, false on failure.
Defined at:

Description

Update metadata of user.

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 metadata, if the meta value is empty.

Related Functions

update_user_meta, update_meta, update_term_meta, update_site_meta, delete_usermeta

Top Google Results

User discussions

wpseek mobile