WooCommerce has a widget that shows up on the admin dashboard named “WooCommerce status”.
By default, the widget shows orders that have a status of “Processing” or “On hold”. It doesn’t show any other order statuses like “Completed” or “Refunded”, etc.
There is no setting provided in WooCommerce which would allow adding any other order status to this dashboard status widget. We will look at how to add a new WooCommerce order status to this widget.
This requirement can be achieved by using the woocommerce_after_dashboard_status_widget WooCommerce hook which will allow adding any additional information at the end of the dashboard WooCommerce status widget.
When below code snippet is included in the functions.php of the currently active child theme (or theme), the status widget will show a quick overview of the order statuses information of ‘Completed’ and ‘Refunded’ statuses as well.
When the above code is included, then the WooCommerce status widget will look like as below
Upon clicking on the respective order statuses, the page will be redirected to the WooCommerce Orders page where all the orders will be sorted based on the selected order status.
So, the store owner can add any WooCommerce order status for the quick view into dashboard WooCommerce status widget as per his requirement.
How do you remove Low and out of stock from the widget?
many thanks
is there any way customer can change the order status processing to complete
Brilliant snippet but I have a question. Is it possible to ignore hidden products? Here is the scenario, if you automatically add a free hidden product to the cart for every single order then the WooCommerce Dashboard Status widget will always show your best seller as the free product which basically masks the real best selling product.
Thanks in advance.
can we add total number of orders for the current month in dashboard