title: Woocommerce product description length characters
body: <p>I added the following code to my functions.php file to add a short product description under the thumbnails on my shop page.</p>
  
  <pre><code>add_action( 'woocommerce_after_shop_loop_item_title', 'lk_woocommerce_product_excerpt', 35, 2);
  if (!function_exists('lk_woocommerce_product_excerpt'))
  {
  function lk_woocommerce_product_excerpt()
  {
  $content_length = 20;
  global $post;
  $content = $post-&gt;post_excerpt;
  $wordarray = explode(' ', $content, $content_length + 1);
  if(count($wordarray) &gt; $content_length) :
  array_pop($wordarray);
  array_push($wordarray, '...');
  $content = implode(' ', $wordarray);
  $content = force_balance_tags($content);
  endif;
  echo "&lt;span class='excerpt'&gt;&lt;p&gt;$content&lt;/p&gt;&lt;/span&gt;";
  }
  }
  </code></pre>
  
  <p>As you can see <a href="http://lostgrok.com" rel="nofollow">here</a> on my website, the descriptions are there, but the length is based on words. Is there anyway I can make the content length of my descriptions based on characters rather than words? </p>