title: Wordpress - Saving Custom User Profile Fields
body: <p>I am currently trying to add some custom user profile fields for my Wordpress users.</p>
  
  <p>I have added the following code into my functions.php but for some reason the data entered is not saving...</p>
  
  <pre><code>//** CUSTOM USER META **//
  
  add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
  add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
  
  function my_show_extra_profile_fields( $user ) { ?&gt;
      &lt;h3&gt;Extra profile information&lt;/h3&gt;
      &lt;table class="form-table"&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;label for="club"&gt;Club You Support&lt;/label&gt;&lt;/th&gt;
              &lt;td&gt;
                  &lt;input type="text" name="club" id="club" value="&lt;?php echo esc_attr( get_the_author_meta( 'club', $user-&gt;ID ) ); ?&gt;" class="regular-text" /&gt;&lt;br /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;?php }
  
     add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
     add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
  
     function my_save_extra_profile_fields( $user_id ) {
         update_usermeta( $user_id, 'club', sanitize_text_field( $_POST['club']) );
     } 
  </code></pre>
  
  <p>Any ideas as to why this data isn't sticking ?</p>