You have to trigger the following hooks:
- user_register
- personal_options_update
-
add_action('user_register', 'addMyCustomMeta'); add_action('personal_options_update', 'addMyCustomMeta' ); add_action('edit_user_profile_update','addMyCustomMeta' ); function addMyCustomMeta( $user_id ) { update_user_meta( $user_id, 'user_phone', $_POST['user_phone'] ); }
Hope that helps!!
Related Posts:
- How to add fields in custom registration form, validate it and aave to db? [closed]
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Custom registration form and custom field
- Can I count the number of users matching a value in a multiple value key?
- 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
- generate unique number when registering a user
- How to update serialized data in the user meta data
- Register new user and add custom data row value for it
- How to reload the role specific registration form on validation errors?
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Upload files programmatically to users
- Displaying additional User Contact Information
- get_user_meta Short Profile Section
- Login & Register & Custom details WITHOUT plugin
- Registration and Profile custom field
- 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?
- Add More Fields to Users Pages (Admin Panel)
- 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?
- 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?
- 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 update user profile custom fields
- Adding extra fields to front end signup form
- Save custom field types with this function…?
- Adding re-type email and check it if the email match
- 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
- Custom User Dashboard
- Custom user registration fields in user_register hook
- author.php not showing content if Author has no Posts
- Adding more fields to the registration form
- 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?
- register_form, custom field not submitted on first try
- 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?
- Register author, facebook connect, publish posts from front end
- 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
- 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()
- how to add radio field on user meta on function.php?
- file upload user profile
- Can’t sort custom column on user.php by number / meta_value_num?
- Create Unique and Customized User ID for Website Members in WordPress
- How to get user-meta from Social Login registered users?
- Save HTML formatted data to post meta using add_post_meta()
- Display custom field only if value present?
- Advice needed for importing custom field data and database structure
- How to save multiple metaboxes?
- Populate Custom Field Dropdown on Theme Install?
- Make URL in custom field hyper link
- meta query not showing any results?
- Creating a custom menu/widget area
- Can’t get post ID using wp_insert_post_data
- Let users track progress by entering a number daily in profile?
- WooCommerce – Adding Custom Fields To Invoice
- $form_fields from attachment_fields_to_edit returning empty array
- How to link keywords in custom fields?
- Adding custom field to post object from custom table
- Can’t save custom field on registration page
- Read more to open external link
- Anyone know how to use ACF and show custom fields for logged in users only on a post? [closed]
- How to redirect to home page according to a specific page custom fields value and user name
- Custom metabox not working
- Selectively hiding or allowing thumbnails of featured images on front page
- Echo out custom fields in comments
- Filter query based on date in custom field
- Convert all dates in field to Unix time, except those already in Unix time
- get_post_custom_values not working
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields