BrandonD
Member
Posted 3 years ago #
When someone registers on WordPress I'd like to register that account with a 3rd party application. I'm currently using the user_register hook in my plugin but I am not aware of a way to obtain the password WP generates for the user in order to hash and store it according to my 3rd party application. Any ideas?
Thanks :)
Same problem here; I add the hook for user_register but since I can only grab the hashed password using get_userdata, I can't store it in my other database (which has a different hashing protocol).
So, the only way I've figured out to do this is by modifying the core function, which obviously blows.
As an add-on, the only way I've figured out how to do this without butchering the core function wp_insert_user was to add a second parameter, the unhashed password, in the do_action call ... Seems pretty hacky, is there a cleaner way?
do_action('user_register', $user_id, $unhashed_pass);