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?
- Populate Elementor Form based on first selection
- Need some suggestions with Relationship fields and CPT/ACF
- How to create Parent-Child relation for custom fields?
- Custom fields / meta box output
- Create citation and url in post using 3 custom fields with conditions for each field… So close!
- How to organise via Custom Fields on Category Page
- How to query posts that have certain post meta keys, and sort by meta key and/or value
- Insert shortcode before and after a list automatically
- Calling Custom Field within Function wrapped with Divs.
- How to check if custom field exists in this widget query
- display loop only if a post meta data exist
- Dynamically create check boxes for given post titles in WPAlchemy
- Assign custom fields to multiple posts?
- Retrieve IDs from custom field, count and display results differently according to count
- Get fields from metabox array
- How do i put a per page theme in a special box/div?
- sort a custom field base on the date or anything
- Only show content slideshow if “slideshow” custom field exists
- Including inline Custom Fields info with add_filter in functions.php
- Post rating using Custom Field
- Inserting custom fields into new-post.php without using the Custom Fields Template plugin?
- If post custom meta data is not set, show normal state
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How can I duplicate “Add Custom Field” with just JavaScript?
- Sort posts after filtering them through multiple taxonomies
- how to have custom post template including custom write panels for the users to post
- How to get the value of particular get $meta value in wordpress