title: Woocommerce programatically add and enable attributes
body: <p>We have a Woocommerce website with over 1000 products on.</p>
  <p>Is it possible to set a default attribute term for every product.</p>
  <p>The attribute name is 'pa_arm-length' and the term is '1'.</p>
  <p>So for example every single product would need an attribute enabled with a term of '1';</p>
  <p>is this possible without having to go into every product individually, enable attribute and then assign it a term?</p>
  <p><a href="https://i.stack.imgur.com/AoaaE.png" rel="nofollow noreferrer">Expectation for each product</a></p>
  <p>I can do it like this but it only works if the attribute already has a term assigned</p>
  <pre><code>wp_set_object_terms( $object_id, '1', 'pa_arm-length' , true);
  
  </code></pre>
  <p>Thanks in advance.</p>