Improve action/hook naming
This commit is contained in:
parent
464ec09d38
commit
a1976bc1bc
|
@ -351,7 +351,7 @@ class WC_Admin_Reports_Coupons_Data_Store extends WC_Admin_Reports_Data_Store im
|
||||||
* @param int $coupon_id Coupon ID.
|
* @param int $coupon_id Coupon ID.
|
||||||
* @param int $order_id Order ID.
|
* @param int $order_id Order ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_update_reports_coupon', $coupon_id, $order_id );
|
do_action( 'woocommerce_reports_update_coupon', $coupon_id, $order_id );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -441,7 +441,7 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
|
||||||
*
|
*
|
||||||
* @param int $customer_id Customer ID.
|
* @param int $customer_id Customer ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_new_reports_customer', $customer_id );
|
do_action( 'woocommerce_reports_new_customer', $customer_id );
|
||||||
|
|
||||||
return $result ? $customer_id : false;
|
return $result ? $customer_id : false;
|
||||||
}
|
}
|
||||||
|
@ -572,7 +572,7 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
|
||||||
*
|
*
|
||||||
* @param int $customer_id Customer ID.
|
* @param int $customer_id Customer ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_update_reports_customer', $customer_id );
|
do_action( 'woocommerce_reports_update_customer', $customer_id );
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -457,7 +457,7 @@ class WC_Admin_Reports_Orders_Stats_Data_Store extends WC_Admin_Reports_Data_Sto
|
||||||
*
|
*
|
||||||
* @param int $order_id Order ID.
|
* @param int $order_id Order ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_update_reports_order_stats', $order->get_id() );
|
do_action( 'woocommerce_reports_update_order_stats', $order->get_id() );
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -367,7 +367,7 @@ class WC_Admin_Reports_Products_Data_Store extends WC_Admin_Reports_Data_Store i
|
||||||
* @param int $order_item_id Order Item ID.
|
* @param int $order_item_id Order Item ID.
|
||||||
* @param int $order_id Order ID.
|
* @param int $order_id Order ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_delete_reports_product', $order_item_id, $order->get_id() );
|
do_action( 'woocommerce_reports_delete_product', $order_item_id, $order->get_id() );
|
||||||
} else {
|
} else {
|
||||||
$wpdb->replace(
|
$wpdb->replace(
|
||||||
$wpdb->prefix . self::TABLE_NAME,
|
$wpdb->prefix . self::TABLE_NAME,
|
||||||
|
@ -412,7 +412,7 @@ class WC_Admin_Reports_Products_Data_Store extends WC_Admin_Reports_Data_Store i
|
||||||
* @param int $order_item_id Order Item ID.
|
* @param int $order_item_id Order Item ID.
|
||||||
* @param int $order_id Order ID.
|
* @param int $order_id Order ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_update_reports_product', $order_item_id, $order->get_id() );
|
do_action( 'woocommerce_reports_update_product', $order_item_id, $order->get_id() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,7 @@ class WC_Admin_Reports_Taxes_Data_Store extends WC_Admin_Reports_Data_Store impl
|
||||||
* @param int $tax_rate_id Tax Rate ID.
|
* @param int $tax_rate_id Tax Rate ID.
|
||||||
* @param int $order_id Order ID.
|
* @param int $order_id Order ID.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_update_reports_tax', $tax_item->get_rate_id(), $order->get_id() );
|
do_action( 'woocommerce_reports_update_tax', $tax_item->get_rate_id(), $order->get_id() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue