title: woocommerce_wp_select options array from product attribute terms
body: <p>I am trying to create a drop down list box in woocommerce but have it populated with data from the database.</p>
  
  <p>I have the majority of the code working but the portion to populate the list box is killing me. This is what I have so far.</p>
  
  <pre><code>add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); // Display Extra Fields on General Tab Section
  
  
  add_action( 'woocommerce_process_product_meta', 'woo_add_custom_general_fields_save' ); // Save Fields
  
  function woo_add_custom_general_fields() {
      global $woocommerce, $post, $product;
      echo '&lt;div class="options_group"&gt;';
  
      // Select
  
      $options = array(
          'hide_empty' =&gt; false,
          'order' =&gt; 'ASC',
          'fields' =&gt; 'names'
          );
      $DogBreeds = get_terms('pa_breed', $options);
  
      foreach ($DogBreeds as $key =&gt; $value) {
          $theArray = "'{$value}'  =&gt; __( '{$value}' , 'woocommerce' ), ";
      }
  
      woocommerce_wp_select( 
          array( 
              'id'      =&gt; '_select', 
              'label'   =&gt; __( 'My Select Field', 'woocommerce' ),
              'options' =&gt;  $theArray //this is where I am having trouble
              )
          );
  
          echo $theArray;
          echo '&lt;pre&gt;';
          var_dump($DogBreeds);
          echo '&lt;/pre&gt;';
  
      echo '&lt;/div&gt;';
  }
  
  // Save Fields
      function woo_add_custom_general_fields_save( $post_id ){
  
      // Select
          $woocommerce_select = $_POST['_select'];
          if( !empty( $woocommerce_select ) )
              update_post_meta( $post_id, '_select', esc_attr( $woocommerce_select ) );
          else {
              update_post_meta( $post_id, '_select',  Null );
          }
      }
  </code></pre>
  
  <p>This should pull information from the "ATTRIBUTES" section in WooCommerce. I created a <strong>Breed</strong> Attribute and put a few dog breeds in there.</p>
  
  <p>Any direction is greatly appreciated!</p>
  
  <p>I know the 'options' section on the array is totally wrong but I put it there so you would know what I am trying to accomplish.</p>