Change Email w/o notification
function change_user_email_without_confirmation($user_id, $new_email) { // Sanitize user ID and new email $user_id = intval($user_id); $new_email = sanitize_email($new_email); // Make sure it's a valid email address if (!is_email($new_email)) { return new WP_Error('invalid_email', __('Invalid email address.')); } // Get the user data…