title: Remove cancelled WooCommerce orders from customers my account page
body: <p>I had been using <a href="https://stackoverflow.com/questions/35332131/cancelled-order-showing-under-my-account-woocommerce/35345296#35345296"><strong>this answer</strong></a> and since WooCommerce version 2.6+, this code <strong>is not working anymore</strong>: </p>
  
  <pre><code>add_filter( 'woocommerce_my_account_my_orders_query', 'custom_my_orders' );
  function custom_my_orders( $args ) {
      if (($key = array_search('wc-cancelled', $args['post_status'])) !== false) {
          unset($args['post_status'][$key]);
      }
      return $args;
  }
  </code></pre>
  
  <p>As the old template <strong><code>my-orders.php</code></strong> is no longer used.</p>
  
  <p>How can I do this using the latest version of Woocommerce?</p>
  
  <p>Thanks.</p>
  
  <p>Reference: <a href="https://stackoverflow.com/questions/35332131/cancelled-order-showing-under-my-account-woocommerce/35345296#35345296">Cancelled order showing under My Account - Woocommerce</a></p>