woocommerce_analytics_delete_customer хук-событиеWC 4.0.0

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 Введена.

Где вызывается хук

DataStore::delete_customer()
woocommerce_analytics_delete_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 877
do_action( 'woocommerce_analytics_delete_customer', $customer_id );

Где используется хук в WooCommerce

Использование не найдено.