woocommerce_analytics_update_order_stats
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
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() );