DataStore::sync_on_order_delete( int $order_id, int $customer_id )
Sync customers data after an order was deleted.
Description Description
When an order is deleted, the customer record is deleted from the table if the customer has no other orders.
Parameters Parameters
- $order_id
-
(Required) Order ID.
- $customer_id
-
(Required) Customer ID.
Source Source
File: packages/woocommerce-admin/src/API/Reports/Customers/DataStore.php