Woocommerce 3.5.x has a special page at the user account (My Account) area where it displays the user's previous Orders.
This page is now 5 column displays as default.
Here the screenshot of the woocommerce Orders area with 5 column:
I Can't find the way to change this.
How can I add a new column in the default?
This requires 2 functions that will add a new column
The second function hook is a composite hook:
woocommerce_my_account_my_orders_column_{$column_id}
where{$column_id}
need to be replaced by the column key slug that is set in the first function.That second function manage the displayed row values and you can add for example a custom field to get custom order meta data values.
The code:
Code goes in function.php file of your active child theme (or active theme). Tested and works.
You are done and have added a custom column to My account orders table:
If you don't wanna change the order template under myaccount page. Here's what you have to do.
First:
Second:
The code above will display "testing" in each order under "Custom Column" column.
Note: If you actually wanna change the entire template, like the design for example. You can follow the first answer above.
Just to improve the accepted answer I add a line to choose the position of the column (after total):