Add payment method to order status change tracking.

This commit is contained in:
Jeff Stieler 2019-06-07 12:52:22 +02:00
parent 1bd9a7d9a7
commit 05fd441145
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class WC_Orders_Tracking {
'next_status' => $next_status,
'previous_status' => $previous_status,
'date_created' => $date->date( 'Y-m-d' ),
'payment_method' => $order->get_payment_method(),
);
WC_Tracks::record_event( 'orders_edit_status_change', $properties );