I have a question regarding the variable "user_pass", which momentarily contains the unencrypted password of the user who registers. Which I'm looking at is codex page . I want to save that password without encrypting it in the database and then calling it from a function, but I'm not sure how to do it.
Code sample (line 1420):
// hashed in wp_update_user(), plaintext if called directly
$user_pass = ! empty( $userdata['user_pass'] ) ? $userdata['user_pass'] : $old_user_data->user_pass;
} else {
$update = false;
// Hash the password
$user_pass = wp_hash_password( $userdata['user_pass'] );
}
Any suggestions are grateful.