I am trying to catch the username and the new password to update it on the backup server. I need to fetch $new_pass but the password always returns null.
add_action( 'password_reset', 'remote_password_update' );
function remote_password_update( $user, $new_pass ) {
$username = $user->user_login; //THIS WORKS PERFECTLY
$password = $new_pass; //THIS ALWAYS RETURNS NULL
}
This is pretty basic and straight forward, so I am not sure what the problem is. Any help is highly appreciated!