Title: Issues/bug with update_usermeta() function
Last modified: August 18, 2016

---

# Issues/bug with update_usermeta() function

 *  [cheesemasterdan](https://wordpress.org/support/users/cheesemasterdan/)
 * (@cheesemasterdan)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/issuesbug-with-update_usermeta-function/)
 * Using the update_usermeta() function to add some user optins in WP 2.0.1 I am
   getting some unexpected (for me) results…
    The function executes fine and the
   data is either inserted or updated depending if it is already in the DB… If the
   data is inserted it returns TRUE but if it is updated it returns FALSE, even 
   though the record is updated correctly… Is this the expected behavior of this
   function, because it is a little misleading?? Thanks

The topic ‘Issues/bug with update_usermeta() function’ is closed to new replies.

## Tags

 * [update_usermeta](https://wordpress.org/support/topic-tag/update_usermeta/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [cheesemasterdan](https://wordpress.org/support/users/cheesemasterdan/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/issuesbug-with-update_usermeta-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
