how to change column name in my orders table
Asked
Active
Viewed 197 times
0

Abdel Rahman Kamhawy
- 421
- 3
- 11
-
1This post should be helpful https://stackoverflow.com/questions/53623789/add-a-custom-column-to-my-account-orders-table-in-woocommerce-3 – Andrew Schultz Mar 31 '20 at 12:26
-
Thank you, this is not what I want, but help me find the solution and I will write the solution in Post below – Abdel Rahman Kamhawy Mar 31 '20 at 12:41
1 Answers
0
this is solution
add_filter( 'woocommerce_account_orders_columns', 'add_account_orders_column', 10, 1 );function add_account_orders_column( $columns ){
$columns = array(
'order-number' => __( 'OrderTest', 'woocommerce' ),
'order-date' => __( 'DateTest', 'woocommerce' ),
'order-status' => __( 'StatusTest', 'woocommerce' ),
'order-total' => __( 'TotalTest', 'woocommerce' ),
'order-actions' => __( 'ActionsTest', 'woocommerce' ),
);
return $columns;}

Abdel Rahman Kamhawy
- 421
- 3
- 11