Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. add_action( 'password_reset', 'remote_password_update' );
  2. function remote_password_update( $user, $new_pass ) {
  3.  
  4. $username = $user->user_login; //THIS WORKS PERFECTLY
  5. $password = $new_pass; //THIS ALWAYS RETURNS NULL
  6.  
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement