Fixed hook names

This commit is contained in:
Claudio Sanches 2019-02-04 16:02:49 -02:00
parent c1bb5802d1
commit 58cdf6a7f9
4 changed files with 7 additions and 7 deletions

View File

@ -58,7 +58,7 @@ class WC_Admin_Reports_Coupons_Data_Store extends WC_Admin_Reports_Data_Store im
add_action( 'save_post', array( __CLASS__, 'sync_order_coupons' ) );
add_action( 'clean_post_cache', array( __CLASS__, 'sync_order_coupons' ) );
add_action( 'woocommerce_order_refunded', array( __CLASS__, 'sync_order_coupons' ) );
add_action( 'woocommerce_delete_reports_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
add_action( 'woocommerce_reports_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
}
/**
@ -369,7 +369,7 @@ class WC_Admin_Reports_Coupons_Data_Store extends WC_Admin_Reports_Data_Store im
* @param int $coupon_id Coupon ID.
* @param int $order_id Order ID.
*/
do_action( 'woocommerce_delete_reports_coupon', 0, $order_id );
do_action( 'woocommerce_reports_delete_coupon', 0, $order_id );
}
}

View File

@ -479,7 +479,7 @@ class WC_Admin_Reports_Orders_Stats_Data_Store extends WC_Admin_Reports_Data_Sto
*
* @param int $order_id Order ID.
*/
do_action( 'woocommerce_delete_reports_order_stats', $order_id );
do_action( 'woocommerce_reports_delete_order_stats', $order_id );
}

View File

@ -89,7 +89,7 @@ class WC_Admin_Reports_Products_Data_Store extends WC_Admin_Reports_Data_Store i
add_action( 'save_post', array( __CLASS__, 'sync_order_products' ) );
add_action( 'clean_post_cache', array( __CLASS__, 'sync_order_products' ) );
add_action( 'woocommerce_order_refunded', array( __CLASS__, 'sync_order_products' ) );
add_action( 'woocommerce_delete_reports_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
add_action( 'woocommerce_reports_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
}
/**
@ -425,6 +425,6 @@ class WC_Admin_Reports_Products_Data_Store extends WC_Admin_Reports_Data_Store i
* @param int $product_id Product ID.
* @param int $order_id Order ID.
*/
do_action( 'woocommerce_delete_reports_product', 0, $order_id );
do_action( 'woocommerce_reports_delete_product', 0, $order_id );
}
}

View File

@ -73,7 +73,7 @@ class WC_Admin_Reports_Taxes_Data_Store extends WC_Admin_Reports_Data_Store impl
add_action( 'save_post', array( __CLASS__, 'sync_order_taxes' ) );
add_action( 'clean_post_cache', array( __CLASS__, 'sync_order_taxes' ) );
add_action( 'woocommerce_order_refunded', array( __CLASS__, 'sync_order_taxes' ) );
add_action( 'woocommerce_delete_reports_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );
add_action( 'woocommerce_reports_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );
}
/**
@ -311,6 +311,6 @@ class WC_Admin_Reports_Taxes_Data_Store extends WC_Admin_Reports_Data_Store impl
* @param int $tax_rate_id Tax Rate ID.
* @param int $order_id Order ID.
*/
do_action( 'woocommerce_delete_reports_tax', 0, $order_id );
do_action( 'woocommerce_reports_delete_tax', 0, $order_id );
}
}