From bc1ea4fdea60e961e0d20a05f50acd0305038d82 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Thu, 9 Oct 2014 13:15:42 -0300 Subject: [PATCH] woocommerce_ prefix in refund actions, related #6477 --- includes/class-wc-ajax.php | 2 +- includes/wc-order-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 3ad43ae6721..545d734b134 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -1891,7 +1891,7 @@ class WC_AJAX { if ( isset( $payment_gateways[ $order->payment_method ] ) && $payment_gateways[ $order->payment_method ]->supports( 'refunds' ) ) { $result = $payment_gateways[ $order->payment_method ]->process_refund( $order_id, $refund_amount, $refund_reason ); - do_action( 'wc_refund_processed', $refund, $result ); + do_action( 'woocommerce_refund_processed', $refund, $result ); if ( is_wp_error( $result ) ) { throw new Exception( $result->get_error_message() ); diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index c4565396d3b..95f02f53c6c 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -672,7 +672,7 @@ function wc_create_refund( $args = array() ) { // Set total to total refunded which may vary from order items $refund->set_total( wc_format_decimal( $args['amount'] ) * -1, 'total' ); - do_action( 'wc_refund_created', $refund_id ); + do_action( 'woocommerce_refund_created', $refund_id ); } // Clear transients