how to send password in mail after status changed to approved

Posted in


I want that when admin changed the affiliate status from pending to accepted, in the mail i send the password too.

I have changed the notification email format like below:-

Congratulations [user_login],

Your request to join the Affiliate Program has been approved.
Your login details are:-

Username: [username]
Password: [password]

Login Here

But instead of sending password it is sending [password].

How can i do that?

One Response to how to send password in mail after status changed to approved

  1. George March 26, 2017 at 4:06 pm #

    Hi Andreas,

    Thanks for mentioning.
    This happens because in the first notification the password is sent before it’s been stored in the database. All the passwords are stored encrypted in the database, you can see that if you have a look at your wp_users table, in a way that it is almost impossible to decrypt and consequently impossible to retrieve as plain text.
    In your case, you should send the password in the first email. I will also update our documentation regarding the [password] token to reflect that note.

    Kind regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account