Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
Seconds

How to add a new WooCommerce order status into Dashboard widget?

WooCommerce has a widget that shows up on the admin dashboard named “WooCommerce status”.

WooCommerce Status Dashboard Widget

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.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

4 thoughts on “How to add a new WooCommerce order status into Dashboard widget?

  1. 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.

Leave a Reply to Md. Elias Cancel reply

Your email address will not be published. Required fields are marked *

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.