Skip to content
Advertisement

Hide orders with status (Pending Payment) on WooCommerce My Account page

Inspired by the thread ‘Hiding order status in My Account recent orders list page’ I tried to hide orders with status (Pending Payment) on the ‘My Account’ page.

I modified the code slightly, but I can’t get it to work.

JavaScript

I really appreciate any help. Thank you.

Advertisement

Answer

Right now you are using the woocommerce_my_account_my_orders_actions filter which will let you filter the buttons in the ‘Action’ column on the ‘My Account’ page.

If you want to filter out certain order statuses from the order list you will have to use the woocommerce_my_account_my_orders_query filter.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement