So I’ve added a custom order status called “awaiting-shippment” and I want to include these orders in the order count displayed under the WooCommerce dropdown menu on the left of the administration.
The only orders being displayed here are the orders with the “processing” status.
Any help, folks? Thanks alot in advance.
3
Answers
I’ve found a fair solution. It’s a bit hacky… but it works
First, add the submenu to WooCommerce menu:
Then, add a function to run when you click this menu item. This function (and here is the hacky part) will redirect the user to the regular orders page, just showing the requested status. (for testing I used “Canceled” status, you should change that)
And lastly, add the counter. Same here, I used “awaiting” status, change it to the one your created
If you want completely replace default counter, the snippet bellow should fit your needs:
Tested with Woocommerce 4.2.2.
Here is the solution
And if you want to disable Woocommerce processing order status count