I use update_user_meta to update the fields. You can add this in functions.php of your child theme.
function save_extra_user_profile_fields( $user_id ) {
if ( !current_user_can( 'edit_user', $user_id ) ) {
return false;
}
update_user_meta( $user_id, 'telephone', $_POST['telephone'] );
}
add_action( 'personal_options_update', 'save_extra_user_profile_fields' );
add_action( 'edit_user_profile_update', 'save_extra_user_profile_fields' );
Related Posts:
- How to add fields in custom registration form, validate it and aave to db? [closed]
- How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
- Can I count the number of users matching a value in a multiple value key?
- Save custom user meta on registration
- How to get users by a custom field / by user meta data?
- How do you add a custom option to user data?
- Show User Their Password
- How to update serialized data in the user meta data
- limit amount of photos uploaded per cpt post
- Save attachment custom fields on front end
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Displaying additional User Contact Information
- get_user_meta Short Profile Section
- Separate table or usermeta
- meta_query for a string inside a meta field containing a comma-separated list
- How to update custom user meta field in wp?
- WordPress User Profile Upload – If page is saved file reset
- ACF: How to get the full field name (meta_key) by a field key?
- How do I create a column in Users list and display user data from custom registration field
- How to save multiple options from a dropdown in user profile
- WP_User_Query pulling ACF to loop
- Users Select inside custom metabox
- query usermeta from custom field
- custom avatar removal
- Excluding Specific Fields from Profile Builder Registration Form
- How to add upload video option in wordpress for user?
- Passing args to WP_User_Query am I using meta correctly?
- How to save the date/time of last update of an extra user profile field?
- How can I add a simple custom field to my plugin?
- ACF form edit front end post title does not change permalink
- Show image if author meta (profile fields) exists outside loop
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- WordPress Settings API Repeatable fields
- check for duplicate user meta data before updating
- Custom Field Repeating When Using foreach
- Increment user meta data by 1 each time a page is visited
- Front end register with custom fields
- Front-End User Profile
- Get emails from users by custom field SQL
- award points to a user each time they update their cpt post
- How to insert multiple checkbox values into post as custom fields from frontend
- Problem uploading different files as custom fields with front end post form
- Save custom field types with this function…?
- Display Additional Info
- Populate custom checkout fields with data from previous orders
- Add WordPress user custom meta to chartjs vertically stacked chart in Divi theme
- User query – getting values for custom meta keys/fields
- Delete user meta but only if found in array
- How to get data from user meta custom fields created with acf-pro plugin?
- How to save multiple values with same meta_key, each value linked to another tag id
- Changing form action based on selected value
- author.php not showing content if Author has no Posts
- Getting user’s data, by custom field lookup (meta)
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Contact Form 7 List Building
- what would be a good example of a php dynamic code to display contents of textarea?
- Login_form add to top of form rather then bottom
- Redirecting to an external URL
- update_user_meta(): invisible data storage
- Extend WP_User_Query or WP_User to return all custom fields?
- Populate a select box with data stored in the database?
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- Is it possible in WordPress
- wordpress simple post multi rating with post_meta and user_meta
- Meta Box Data added to header redirect
- Form fields based on custom fields
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Echo text if field under user_meta is empty with get_users()
- Bypassing a Form Options
- Custom registration form and custom field
- how to add radio field on user meta on function.php?
- Can’t sort custom column on user.php by number / meta_value_num?
- How to rename a custom field?
- Add meta data to the menu
- Copy SEO Meta Desc “Custom Field” to Excerpt field?
- Custom fields won’t display on my blog page
- How to edit multiple post with Custom fields
- How can I show custom fields in the loop only to specific user roles?
- Add conditional custom option to ‘Display name publicly as’ dropdown
- Custom fields not getting saved in the databse when added to the add new user profile page
- Show 1 post and after a specific date show the next one
- Split the_title
- How to Wrote Simple Calculations by Using Custom Fields in Loop?
- How can I use custom properties to set different background on different pages?
- How do I save Multiple fields in a meta box?
- Can I access Posts of custom-fields via URL?
- Output custom field value
- Best way to achieve multiple links in a post title
- plugin-list-category-post custom fields
- How to display data from custom fields I created?
- How to show ACF fields in Gridbuilder custom block
- Adding more fields to the registration form
- use mysql to replace one custom field value with another custom field value
- Spit out list of distinct instances of custom field?
- Edit different parts of a page seperately
- I want my post to republish again after adding a custom field
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- Media Custom Fields – get a value with PHP
- jaredatch metaboxes on video post formats