title: Show Old Data OF User When Edit Profile
body: <p>In my website there're user roles <strong>STUDENT</strong> and <strong>TEACHER</strong>. Now I edit user profile and change user role TEACHER to STUDENT. I want to send mail but I also want to display old value. I am using the following code:</p>
  
  <pre><code>function user_profile_update($userid) {
      $userdata = get_userdata($userid);//get updated user data 
      print_r($userdata);// print values
      die("check");//stop the screen
  }
  add_action('profile_update','user_profile_update');
  </code></pre>
  
  <p>Please help me for print old values.</p>