woocommerce_analytics_delete_customer
Fires when a customer is deleted.
Usage
add_action( 'woocommerce_analytics_delete_customer', 'wp_kama_woocommerce_analytics_delete_customer_action' ); /** * Function for `woocommerce_analytics_delete_customer` action-hook. * * @param int $order_id Order ID. * * @return void */ function wp_kama_woocommerce_analytics_delete_customer_action( $order_id ){ // action... }
- $order_id(int)
- Order ID.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
woocommerce_analytics_delete_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 885
do_action( 'woocommerce_analytics_delete_customer', $customer_id );