How to add a new column to WooCommerce orders table

WooCommerce provides a table with all the orders in WP dashboard area under WooCommerce > Orders. By default that table has 7 columns: Order, Date, Status, Billing, Ship to, Total and Actions. If you want to add a new column to this table in WordPress admin area this is possibly by adding custom PHP code to your functions.php file which it is in your theme folder.

Let’s say that, for example, you will want to add the billing details to this Orders table. You will need to open functions.php file which you can find it in your theme folder (yourdomain.com/wp-content/themes/your-theme/functions.php).

Then, at the end of this file, you will need to add the following PHP code in order to add a new “Billing Info” column at the end of the Orders table:

The above code adds a new column at the end of the other existing columns in Orders table. And now we have the desired result:

Please let me know if you have any questions and if this is working for you.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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