title: Update current user's primary blog after creating a blog in wordpress multisite
body: <p>I wanted to update the current user's primary blog to the blog created after blog signup on wp-signup.php form. So that the current user's primary blog is set to the blog he had created.</p>
  
  <p>I tried this but its not working,</p>
  
  <pre><code>add_action('wpmu_new_blog','update_primary_blog',10);
  
  function update_primary_blog() {
  global $wpdb;
  update_user_meta( get_current_user_id(), 'primary_blog', $wpdb-&gt;insert_id );
  }
  </code></pre>
  
  <p>Is there another way to do it?</p>