Title: user_register hook
Last modified: August 19, 2016

---

# user_register hook

 *  [BrandonD](https://wordpress.org/support/users/brandond/)
 * (@brandond)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/user_register-hook/)
 * 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 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [rwc](https://wordpress.org/support/users/rwc/)
 * (@rwc)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/user_register-hook/#post-1015291)
 * 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.
 *  [rwc](https://wordpress.org/support/users/rwc/)
 * (@rwc)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/user_register-hook/#post-1015292)
 * 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);

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘user_register hook’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [rwc](https://wordpress.org/support/users/rwc/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/user_register-hook/#post-1015292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
