WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
событие не описано

woocommerce_analytics_delete_order_stats хук-событие . WC 1.0

Fires when orders stats are deleted.

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

add_action( 'woocommerce_analytics_delete_order_stats', 'action_function_name_9262', 10, 2 );
function action_function_name_9262( $order_id, $customer_id ){
	// action...
}
$order_id(число)
Order ID.
$customer_id(число)
Customer ID.

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

DataStore::delete_order()
woocommerce_analytics_delete_order_stats
woocommerce/packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php 592
do_action( 'woocommerce_analytics_delete_order_stats', $order_id, $customer_id );

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

woocommerce/packages/woocommerce-admin/src/API/Reports/Coupons/DataStore.php 69
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Customers/DataStore.php 88
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Products/DataStore.php 103
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Taxes/DataStore.php 83
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );