title: Change related product names via filter in WooCommerce
body: <p>I have my WooCommerce products set up to feed product data to Jet.com the way it needs. That is something like:</p>
  
  <pre><code>Product Name - A bunch of attributes - A bunch of other descriptors - Etc.
  </code></pre>
  
  <p>But I don't want the long form titles of products to appear on the website the way they do on Jet.com. </p>
  
  <p>So, using the <code>woocommerce_cart_item_name</code> filter, I created a bit of code to grab just the first main name of the product, <code>Product Name</code> and display just that in the cart at checkout (it's a combined cart/checkout page).</p>
  
  <p>What I can't figure out is how to do the same for <strong>related</strong> products (upsells and cross-sells) that appear on the cart/checkout page. The WooCommerce docs don't seem to have a specific filter for that, like <code>woocommerce_related_item_name</code>.</p>
  
  <p>How do I modify the related product text the same way I do in the cart?</p>
  
  <p>For more context, here's the working cart name truncation code that I want to do the same for with upsell/cross-sell.</p>
  
  <pre><code>// Display only short product name on website, leaving long product name for Jet.com to consume
  add_filter( 'woocommerce_cart_item_name', 'shorten_woo_product_title', 10, 2 );
      function shorten_woo_product_title( $title, $cart_item, $cart_item_key ) {
          $_product   = $cart_item['data'] ;
          if ( is_checkout() || is_shop() ) {
              $title = $_product-&gt;get_title();
              // Use as the product name the characters up to but not including the first dash character
              $n = 1; // 1st dash
              $pieces = explode(' - ', $title); // Break up the title into an array delimited by the "space dash space" characters
              $shortname = implode(' - ', array_slice($pieces, 0, $n)); // Grab the short name in front of the first dash character
              return $shortname; // Return it back
          } else {
              return $title; // Give the full product name
          }
  }
  </code></pre>