title: WordPress PHP - get_the_term_list() without links
body: <p>I have successfully managed to make a shortcode into my product description, to show all my <code>$taxonomy</code> and <code>$attribute_label</code> values in a nice table form. Unfortunately, it returns the <code>$attribute_label</code> values as a link. I want them to be displayed as text.</p>
  <pre><code>$html .= get_the_term_list( $product-&gt;get_id(), $taxonomy, '&lt;tr&gt;&lt;td&gt;' . $attribute_label . '&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;' , '&lt;/td&gt;&lt;td&gt;', '&lt;/td&gt;&lt;/tr&gt;' );
  </code></pre>
  <p>I have tried to use <code>wp_get_object_terms</code> but it wont work for me , it returns &quot;Array&quot; in all my Columns in the <code>&lt;table&gt;</code> Form.</p>
  <p>My full Code so far:</p>
  <pre><code>function so_39394127_attributes_shortcode( $atts ) {
      global $product;
  
      if( ! is_object( $product ) || ! $product-&gt;has_attributes() ){
          return;
      }
  
      // parse the shortcode attributes
      $args = shortcode_atts( array(
          'attributes' =&gt; array_keys( $product-&gt;get_attributes() ), // by default show all attributes
      ), $atts );
  
      // is pass an attributes param, turn into array
      if( is_string( $args['attributes'] ) ){
          $args['attributes'] = array_map( 'trim', explode( '|' , $args['attributes'] ) );
      }
  
      // start with a null string because shortcodes need to return not echo a value
      $html = '';
  
      if( ! empty( $args['attributes'] ) ){
  
          foreach ( $args['attributes'] as $attribute ) {
  
              // get the WC-standard attribute taxonomy name
              $taxonomy = strpos( $attribute, 'pa_' ) === false ? wc_attribute_taxonomy_name( $attribute ) : $attribute;
  
              if( taxonomy_is_product_attribute( $taxonomy ) ){
  
                  // Get the attribute label.
                  $attribute_label = wc_attribute_label( $taxonomy );
  
                  // Build the html string with the label followed by a list of terms.
                  // Updated for WC3.0 to use getters instead of directly accessing property.
                  $html .= wp_get_object_terms( $product-&gt;get_id(), $taxonomy, '&lt;tr&gt;&lt;td&gt;' . $attribute_label . '&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;' , '&lt;/td&gt;&lt;td&gt;', '&lt;/td&gt;&lt;/tr&gt;' ); 
              }
  
          }
  
          // if we have anything to display, wrap it in a &lt;table&gt; for proper markup
          
          if( $html ){
              $html = '&lt;table class=&quot;product-attributes&quot;&gt;' . $html . '&lt;/table&gt;';
          }
      }
  
      return $html;
  }
  add_shortcode( 'display_attributes', 'so_39394127_attributes_shortcode' );
  </code></pre>
  <p>I am new to PHP so any help is very appreciated!</p>