You need to use wp_update_user()
for the email, as it is not user-meta but core user data. The code should look something like this:
$args = array(
'ID' => $current_user->id,
'user_email' => esc_attr( $_POST['user_email'] )
);
wp_update_user( $args );
Note: that’s untested, but it should work out of the box.
Related Posts:
- WordPress Add New User – Send an Activation Email
- Send mail to user only once when specific check box is selected and updated from profile meta updated by admin
- How do I update user email from frontend input field?
- User profile update author
- SMTP connect() failed PHPmailer – PHP
- What is the difference between ports 465 and 587?
- Email validation in Ruby on Rails?
- Is there a way to embed an iframe in an email with text that updates?
- Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
- How to create a front end user profile with a friendly permalink
- How to set SMTP programmatically
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- changing notification emails from WordPress @mydomain.net to something else
- Disable user registration password email
- Alert Email when any Post or Page is Changed
- Do something after sending email
- get_user_meta() doesn’t include user email?
- How do I customise the new user welcome email
- Missing URL in password reset email
- User Without Email?
- “Reply-to Address” Email
- prevent users from changing their email address
- Get basic Image Uploader on User Profile Page
- Where the Nickname is being used in WordPress
- Disable new user notification to admin email
- Allow Duplicate Email Address for Different Users
- Email confirmation on registration
- Customizing lost password email
- How do you make the email field on the profile page read only for subscribers?
- Create custom welcome email without a plugin
- Include HTML template file in wp_mail
- Email sent from WordPress has HTML tags
- How to disable automated E-Mail on PHP error/exception?
- Reset Password – change from name and email address
- How do i send mail with custom Form Data using WordPress
- Email as Username in registration
- Email stats at Ma.tt contact form
- Fwd: [Website Name] Notice of Email Change [closed]
- Send all WPMU emails via SMTP
- Send mail to wordpress admin
- Connect Users and Taxonomies
- How to add usermeta to “Notice of Email Change” email message
- How to create virtual pages with information from user meta profile fields?
- Send a confirmation of user role upgrade conditionally
- WP Cron emails not working
- Dynamically send pdf attached to post with contact form 7 [closed]
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- Locked out of my own blog and password reset not working
- How to create user personal pages with information from their meta profile fields?
- wp_mail recipient array not sending?
- Change Password notification text on mail
- Transferring contact form input to an email account without using an email-proxy
- Should I use the standard wp_mail() function for a premium theme?
- Extra User Profile Field Upload File / Image
- On form submission how to send 2 email to different users
- How to Configure SMTP on wordpress Cant Send Email
- email wordpress users using BCC
- Contact Form 7 + Configure SMTP: Sender email appearing as my own email [closed]
- email sends from [email protected] even though I have it set to something else
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- Drop down list in user profile page
- Handle registrations in WordPress when user doesn’t have any email?
- Can I create front-end editable user profile pages with WordPress? How do I do it?
- Joining confirmation email
- How to sent one form values to 2 different sites in wordpress
- How to setup SMTP for only one specific wp_mail()
- apostrophe in email name
- Sanitizing and validating email field
- Display site admin profile fields in header.php
- Disable WP notifications for commenting on own posts
- General Setting Allow Multiple Email Notification
- Must I change the admin user email address while changing the general email address?
- User invite email not delivered – related to subdomain?
- Can I configure WordPress to use postfix without a plugin?
- Ability to download only after email supplied [closed]
- Batch Emails with wp_mail()
- Email notification after registration in WordPress
- Subscribe from another website to the same list [closed]
- Add custom fields to the user profile
- Obfuscating Email Addresses in Form Fields
- Email ‘from address’ has a www in it
- How to validate website field in contact form 7?
- How to Change WooCommerce new order email?
- Trigger WordPress Actions from Email?
- WordPress E-mail Config
- Is there no way to send email using SMTP without plugin or custom coding?
- How to change WordPress email notification sender?
- Contact form sender email
- PHP mail() works but wp_mail() does not
- Send email daily from WordPress site
- Send email only upon draft
- WordPress User Profile Upload – If page is saved file reset
- Mechanism to send to users of secured WordPress install new notifications by SMS or email?
- How to change the Customer new account email
- Sending emptys emails every day, How stop it?
- wordpress do not let user registered with info@ email and other reserved emails to get registered by users
- Emails marked as spam because it’s contain via box4231.bluehost.com
- How to change the text of automatic E-Mails e.g. after changing your password? (German localization)
- Is it possible to change an existing post status from ‘pending’ to ‘publish’ via email?
- How to display user’s avatar on their profile page?