title: Wordpress user_meta_data on registration
body: <p>I haven't figured out how to add custom user_meta_data when the user is registered.</p>
  
  <p>I think the code would be:</p>
  
  <pre><code>update_user_meta( $user_id, 'weight', 5 );
  </code></pre>
  
  <p>I don't know what file to add this to or where, or if it's even the right code.</p>
  
  <p>Below is a test users meta data from the meta data table that would need the entry added at registration.</p>
  
  <p><a href="https://i.stack.imgur.com/FOcBP.png" rel="nofollow noreferrer">https://i.stack.imgur.com/FOcBP.png</a></p>
  
  <p>I tried creating a plugin like ibenic suggested.  </p>
  
  <pre><code>&lt;?php
  /**
   * @package Weight_Add
   * @version 1.0
   */
  /*
  Plugin Name: Weight Add
  Description: Adds weight data on user registry
  Author: Straconis
  Version: 1.0
  */
  
  add_action( 'user_register', 'my_add_post_meta' );
  
  function my_add_post_meta( $user_id ) {
     // Do checks if needed
     update_user_meta( $user_id, 'weight', 5 );
  }
  
  ?&gt;
  </code></pre>
  
  <p>I love the idea of the plugin, I didn't even think of that.  Thank you.</p>