Show products name and quantity in a new column on Woocommerce My account Orders
问题 In Woocommerce, I would like to add a new column to My account orders list and show the name and quantity of ordered the products. I have this code for instance that adds a new column displaying the order name: function sv_wc_add_my_account_orders_column( $columns ) { $new_columns = array(); foreach ( $columns as $key => $name ) { $new_columns[ $key ] = $name; if ( 'order-status' === $key ) { $new_columns['order-ship-to'] = __( 'Ship to', 'textdomain' ); } } return $new_columns; } add_filter(