title: WooCommerce - Remove product title from breadcrumbs but keep all category hyperlinks
body: <p>I'm using the following function to remove the product title from the breadcrumbs displayed on the product page:</p>
  <pre class="lang-php prettyprint-override"><code>add_filter( 'woocommerce_get_breadcrumb', 'ed_change_breadcrumb' );
  
  function ed_change_breadcrumb( $breadcrumb ) {
      
    if(is_singular()){
          array_pop($breadcrumb);
      }
    
    return $breadcrumb;
  }
  </code></pre>
  <p>It works in that it does remove the title, but it also stops the last category/sub-category from being a hyperlink. How can I fix that?</p>
  <p>For example:</p>
  <ul>
  <li><p>Original breadcrumb</p>
  <p><code>&lt;a&gt;</code>Home<code>&lt;/a&gt;</code> / <code>&lt;a&gt;</code>Category<code>&lt;/a&gt;</code> / <code>&lt;a&gt;</code>Sub Category<code>&lt;/a&gt;</code> / Product Title</p>
  </li>
  <li><p>Result of the above function</p>
  <p><code>&lt;a&gt;</code>Home<code>&lt;/a&gt;</code> / <code>&lt;a&gt;</code>Category<code>&lt;/a&gt;</code> / Sub Category</p>
  </li>
  </ul>
  <p>I need the Sub Category to still be clickable after removing the product title from the breadcrumbs.</p>
  <p>Thanks</p>