Title: Adding User Meta
Last modified: October 16, 2017

---

# Adding User Meta

 *  [Beagle99](https://wordpress.org/support/users/beagle99/)
 * (@beagle99)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/adding-user-meta/)
 * Hi All
 * I’m very new to this sort of work on my own projects.
 * I checked various plugins and all were either too old and/or too much functionality.
 * I’ve use Justin Tadlock’s blog to add some user meta. I’ve read the Codex and
   I’m lost. As I can’t work out why the code doesn’t save the new meta.
 * My aim is for a registration using the gravity forms registration addon and the
   additional user meta to be saved.
 * I’ve got the form and the connections to the meta set up (but when I test the
   save on my own user meta it won’t save).
 * What have I missed?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-user-meta%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [sarmistha1990](https://wordpress.org/support/users/sarmistha1990/)
 * (@sarmistha1990)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/adding-user-meta/#post-9590128)
 * Hello,
 * As you use a commercial plugin and need support, please use their official support
   channel. We feel they are best equipped to support their products.
 * [https://www.gravityforms.com/support/](https://www.gravityforms.com/support/)
 *  Thread Starter [Beagle99](https://wordpress.org/support/users/beagle99/)
 * (@beagle99)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/adding-user-meta/#post-9590283)
 * Hi sarmisrha1990
 * Thanks for getting back to me. The issue I am having has nothing to do with gravity
   forms. I was just giving context to my issue.
 * My issue is purely about adding user_meta and what is wrong with the code I have
   provided.
 * Any help would be appreciated 🙂
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/adding-user-meta/#post-9592510)
 * Try moving your profile and option update hooks and related callback declaration
   from within the form table out to normal plugin or theme code that is processed
   on page load.
 * It currently is only interpreted when the profile screen loads, not when the 
   form is submitted.
 * Oh, BTW – the page you need help with field is intended for live links to your
   own site that illustrate the issue you have. When you use it to link to PHP code(
   admittedly a clever use), many readers miss your intent. In the future, linking
   to source code in your topic body will prevent misunderstanding.
    -  This reply was modified 8 years, 7 months ago by [bcworkz](https://wordpress.org/support/users/bcworkz/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding User Meta’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/adding-user-meta/#post-9592510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
