1

I have this code for an email: $hash = wp_hash_password ($user_info->user_pass); $address_invoice=$user_info->display_name.'
Email:'.$user_info->user_email.'
Username:'.$user_info->user_login.'
Password:'.$hash;

In the email: I receive correctly name, email, username but not the password of user.

Why? What is it wrong?

  • 1
    Few questions - what action is this code hooked to? Are you intending to send the actual password itself and you're receiving a random-looking string? Or are you trying to send the hash and receiving nothing? Either way, it's worth noting that emailing either is something of a security hazard – bosco Feb 25 '17 at 3:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.