i have a workflow in which a user when gets approved by system. Gets his login credentials as username and password. I want to send the user when he is approved his username and password in a mail. I am not sure how can i retrieve a user password from database is there an already existing function in wordpress?
Share
You can store this with user_meta functions ( http://codex.wordpress.org/Function_Reference/get_user_meta | http://codex.wordpress.org/Function_Reference/add_user_meta | http://codex.wordpress.org/Function_Reference/delete_user_meta | http://codex.wordpress.org/Function_Reference/update_user_meta ). So when user registers you save his password with something like add_user_meta($uid, “clearPass”, $val) and then get it back when you’re sending those emails..
But as said before, it isn’t the best approach at all.