Improve action/hook naming

This commit is contained in:
Claudio Sanches 2019-02-04 15:58:37 -02:00
parent 464ec09d38
commit a1976bc1bc
5 changed files with 7 additions and 7 deletions

View File

@ -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 $order_id Order ID.
*/
do_action( 'woocommerce_update_reports_coupon', $coupon_id, $order_id );
do_action( 'woocommerce_reports_update_coupon', $coupon_id, $order_id );
}
}

View File

@ -441,7 +441,7 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
*
* @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;
}
@ -572,7 +572,7 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
*
* @param int $customer_id Customer ID.
*/
do_action( 'woocommerce_update_reports_customer', $customer_id );
do_action( 'woocommerce_reports_update_customer', $customer_id );
return $results;
}

View File

@ -457,7 +457,7 @@ class WC_Admin_Reports_Orders_Stats_Data_Store extends WC_Admin_Reports_Data_Sto
*
* @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;
}

View File

@ -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_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 {
$wpdb->replace(
$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_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() );
}
}
}

View File

@ -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 $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() );
}
}