How do I update user email from frontend input field?

You can diagnose error while updating user email. $user_data = wp_update_user( array( ‘ID’ => $user_id, ‘user_email’ => $email ) ); if ( is_wp_error( $user_data ) ) { // There was an error; possibly this user doesn’t exist. echo ‘Error.’; } else { // Success! echo ‘User profile updated.’; } Might it can help you.

WordPress 5.8 – Hide or Remove personal fields from admin Profile page

This is working for me in 5.8. Works in “adding new user” and in “edit user”. “Public display name” managed with a plugin. The code: // Remove fields from Admin profile page if ( ! function_exists( ‘cor_remove_personal_options’ ) ) { function cor_remove_personal_options( $subject ) { $subject = preg_replace(‘#<h2>’.__(“Personal Options”).'</h2>#s’, ”, $subject, 1); // Remove the … Read more

How $_GET[‘updated’] variable is passed when updating a user?

I have found a javascript solution. Here is the code: member.js (needs jQuery) $jq = jQuery.noConflict(); $jq(document).ready(function () { redirect_on_save_func(); }); function redirect_on_save_func() { var qvars = get_query_func(); var nq = []; $jq.each(qvars, function (vk, vv) { if (vk.match(‘meta_warning*’) == null) nq.push(vk + ‘=’ + encodeURIComponent(vv)); }); var hr = window.location.href; var nqs = hr.split(‘?’)[0] … Read more