woocommerce_analytics_delete_order_stats
Fires when orders stats are deleted.
Использование
add_action( 'woocommerce_analytics_delete_order_stats', 'wp_kama_woocommerce_analytics_delete_order_stats_action', 10, 2 ); /** * Function for `woocommerce_analytics_delete_order_stats` action-hook. * * @param int $order_id Order ID. * @param int $customer_id Customer ID. * * @return void */ function wp_kama_woocommerce_analytics_delete_order_stats_action( $order_id, $customer_id ){ // action... }
- $order_id(int)
- Order ID.
- $customer_id(int)
- Customer ID.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
woocommerce_analytics_delete_order_stats
woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php 621
do_action( 'woocommerce_analytics_delete_order_stats', $order_id, $customer_id );
Где используется хук в WooCommerce
woocommerce/src/Admin/API/Reports/Coupons/DataStore.php 84
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 110
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 );
woocommerce/src/Admin/API/Reports/Products/DataStore.php 113
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
woocommerce/src/Admin/API/Reports/Taxes/DataStore.php 103
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );