# What is the field meta key option

URL: https://wpusermanager.com/article/185-what-is-the-field-meta-key-option/
Last updated: 2021-04-09

**If you're just getting started with meta fields in WordPress, check out our tutorial on [how to set up WordPress custom user meta fields](https://wpusermanager.com/tutorials/how-to-set-up-custom-user-meta-fields/).**

The support for custom fields for users in WordPress is limited and it isn't possible to define new custom fields without a plugin like [WP User Manager](https://wpusermanager.com/). WP User Manager, with the [Custom Fields addon](https://wpusermanager.com/addons/custom-fields/) allows site admins to define custom user meta (such as phone number, address, employment details) that they can add to user registration forms to collect data from users, as well as being displayed on the user profiles.

WP User Manager is one of the most straightforward to use WordPress membership plugins available, with a large number of [features](https://wpusermanager.com/features/) that turn your WordPress site into a membership platform.

Custom Fields
-------------

Every field has a "unique meta key" setting that must be filled. This is automatically created for you when you create the field. The meta key determines how the field will be stored into the database of your website. If you do not need to do any custom development you probably do not need to customize this field.

It's important however that if you change the key, it has to be a unique value that no other field has. Using the same key for multiple fields will make it impossible for the user to correctly update it's information. 

Developers however can freely customize this setting if they know what they're doing. The metakey is used to retrieve the saved value from the database and display it. 

If you are a developer, chances are you already know about this WordPress function [https://codex.wordpress.org/Function\_Reference/get\_user\_meta.](https://codex.wordpress.org/Function_Reference/get_user_meta)

This function is used to retrieve the value of a user custom field from the database through the user id number and the metakey name. 

In WPUM every custom field metakey has the prefix "wpum_". 

Note: the prefix for file fields is "wpum_file_". 

![](https://s3.amazonaws.com/helpscout.net/docs/assets/5d6cea4404286350aeeb5235/images/5d6cf2f32c7d3a7a4d77f58f/5d6cf2ecf3336.png)

This means that the full metakey name is wpum\_field\_11. If you change that to anything else like "job\_title", the metakey will be wpum\_job\_title.

Here you can find an example of the get\_user\_meta function retrieving a WPUM field value.

`get_user_meta( $user_id, 'wpum_field_11', true );`

OR, if the above does not work:

`carbon_get_user_meta( $user_id, 'wpum_field_11' );`

[Get started adding custom fields to your WordPress users.](https://wpusermanager.com/pricing/)
