title: What is the difference between these blocks of code in WordPress?
body: <p>This is not working:</p>
  
  <pre><code>$simple_local_avatars = new Simple_Local_Avatars;
  
  if(isset($_POST['save_account_details'] ) ) {
      $user_id = get_current_user_id();
      $simple_local_avatars-&gt;edit_user_profile_update($user_id);
  }
  </code></pre>
  
  <p>But this is working, just not as dynamic:</p>
  
  <pre><code>$simple_local_avatars = new Simple_Local_Avatars;
  
  if(isset($_POST['save_account_details'] ) ) {
      $simple_local_avatars-&gt;edit_user_profile_update(58);
  }
  </code></pre>
  
  <p>The edit_user_profile_update function expects the current logged in user id.</p>