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.
$user_id, $meta_key, $meta_value
Sortie :
@param int $user_id User ID @param string $meta_key Metadata key. @param mixed $meta_value Metadata value. @return bool True on successful update, false on failure.
// Utilisation de la fonction update_usermeta
$result = update_usermeta($user_id, $meta_key, $meta_value);
if ($result) {
// Votre logique ici
}
Chargement des actualités...