title: Wordpress Woocommerce - use update_post_meta to add product attributes
body: <p>The products in my clients website require certain attributes which I have added via <b>Products -> Attributes</b> in the Wordpress administration. In this import script I'm coding I need to use the function <code>update_post_meta($post_id, $meta_key, $meta_value)</code> to import the proper attributes and values. </p>
  
  <p>Currently I have the function like so:</p>
  
  <pre><code>update_post_meta( $post_id, '_product_attributes', array());
  </code></pre>
  
  <p>However I'm not sure how to properly pass along the attributes and their values?</p>