woocommerce_analytics_update_order_stats action-hookWC 4.0.0.

Fires when order's stats reports are updated.

Usage

add_action( 'woocommerce_analytics_update_order_stats', 'wp_kama_woocommerce_analytics_update_order_stats_action' );

/**
 * Function for `woocommerce_analytics_update_order_stats` action-hook.
 * 
 * @param int $order_id Order ID.
 *
 * @return void
 */
function wp_kama_woocommerce_analytics_update_order_stats_action( $order_id ){

	// action...
}
$order_id(int)
Order ID.

Changelog

Since 4.0.0. Introduced.

Where the hook is called

DataStore::update()
woocommerce_analytics_update_order_stats
woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php 589
do_action( 'woocommerce_analytics_update_order_stats', $order->get_id() );

Where the hook is used in WooCommerce

Usage not found.