woocommerce_analytics_delete_customer
Fires when a customer is deleted.
Использование
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.
Список изменений
| С версии 4.0.0 | Введена. |
Где вызывается хук
woocommerce_analytics_delete_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 984
do_action( 'woocommerce_analytics_delete_customer', $customer_id );