title: Limit WooCommerce product title to a specific length (and add '...')
body: <p>I'm trying to limit the number of characters our WooCommerce product titles have, I found this PHP code:</p>
  <pre><code>add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 );
  function shorten_woo_product_title( $title, $id ) {
      if ( ! is_singular( array( 'product' ) ) &amp;&amp; get_post_type( $id ) === 'product' ) {
          return substr( $title, 0, 30); // change last number to the number of characters you want
      } else {
          return $title;
      }
  }
  </code></pre>
  <p>It works but I would like it to show the &quot;...&quot; at the end of each product title.</p>