title: Hide orders with status (Pending Payment) on WooCommerce My Account page
body: <p>Inspired by the thread <a href="https://stackoverflow.com/questions/43392110/hiding-order-status-in-my-account-recent-orders-list-page">'Hiding order status in My Account recent orders list page'
  </a> I tried to hide orders with status (Pending Payment) on the 'My Account' page.</p>
  <p>I modified the code slightly, but I can't get it to work.</p>
  <pre><code>add_filter('woocommerce_my_account_my_orders_actions', 'custom_removing_order_status_pending_payment', 10, 1);
  
  function custom_removing_order_status_pending_payment( $order ){
      unset($order['wc-pending']);
      return $order;
  }
  </code></pre>
  <p>I really appreciate any help. Thank you.</p>