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
- What is the difference between ports 465 and 587?
- How to set SMTP programmatically
- changing notification emails from WordPress @mydomain.net to something else
- Alert Email when any Post or Page is Changed
- Missing URL in password reset email
- User Without Email?
- Allow Duplicate Email Address for Different Users
- Customizing lost password email
- How do i send mail with custom Form Data using WordPress
- Fwd: [Website Name] Notice of Email Change [closed]
- How to create virtual pages with information from user meta profile fields?
- WP Cron emails not working
- 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?
- Change Password notification text on mail
- On form submission how to send 2 email to different users
- email wordpress users using BCC
- email sends from [email protected] even though I have it set to something else
- Joining confirmation email
- How to setup SMTP for only one specific wp_mail()
- General Setting Allow Multiple Email Notification
- Email notification after registration in WordPress
- Trigger WordPress Actions from Email?
- WordPress E-mail Config
- Send email only upon draft
- WordPress User Profile Upload – If page is saved file reset
- wordpress do not let user registered with info@ email and other reserved emails to get registered by users
- How to display user’s avatar on their profile page?
- Limit number of emails per second
- Prevent update of custom user profile meta field on the front end after 1st entry
- Throttling email frequency
- WordPress unable to send mail
- Correctly configure SPF/DMARC record to work with WordPress [closed]
- Not able to send links in email after setting header
- 2 Email addresses for each user
- Emailing passwords: Setup installed on home server using XAMPP
- wp_mail_from is ignored
- How to set up a simple email subscription?
- PAGE Specific Email Notifications
- How to send post notification when a Author and Contributor post?
- How to edit the WordPress e-mail that gives the user their password? [duplicate]
- Do action for only switch status for publish_post
- Change the Sender(not From) on wp_mail() function [closed]
- Is Postfix required for WordPress contact forms in general?
- Adding “reply-to” in the email [closed]
- Solving a get_user_meta() problem in Multisite
- Programming WordPress to Send an Email on Registration Form Submit?
- How do I troubleshoot registration/password email errors?
- Confirmation required on users email change
- Does WordPress require port 25 for email?
- What is correct way to change user’s email?
- Change email address change notice from WordPress
- How to order custom fields in the user profile (admin area)
- Is there a plugin that will let you do actions by mail? [closed]
- Send email daily using `wp_mail`
- How to send confirmation email after payment made via paypal?
- WP stopped emailing notifications about new comments
- How to change the format of the subcriber email
- Changing email “From” address
- WordPress and IPN problem
- Send email for confirmation during user registration
- Add “Email Image” button with Hyperlink for individual images [closed]
- Mail through Cron Execution does not work!
- How $_GET[‘updated’] variable is passed when updating a user?
- Need to suspend RSS feed while repairing missing old post
- How to recover one of WP email addresses?
- Activation email to change admin address not being sent to Gsuite email account
- Send email with Content-Type text/plain
- Gender based user avatar
- forgot password page with expiry link email of 60 minutes
- New user notification issue
- how to save multiple checkbox in usermeta and get it?
- E-Mail Notification on post edit
- I need to verify emails when users signup
- Where is the account email address located?
- wp_mail() not sending emails with ajax
- SMTP not working for Comments Email Notifications
- wordpress wp mail not changing sender mail
- changing notification emails from WordPress @mydomain.net to something else
- Send Bulk Email without them going to spam
- How can I send an email 24 hours after first email?
- WordPress doesn’t send SMTP email even by phpmailer hook
- Asynchronous emailing
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Send Custom Post Notification to Followers
- Duplicate notifications for new user registration
- Hide user fields based off capability
- Validate user meta and redirect
- Create WP account from an external email form submission?
- Can wordpress users check GMAIL (G Suite) inbox & send email from their membership account on WordPress? [closed]
- Send email once every 12 months to a particular user [closed]
- Where does email sent to *@example.com go? [closed]
- How to send emails and avoid them being classified as spam?
- How to change the WordPress email icon?
- What’s the optimum way to collect users’ email id?