From d07e567050be375d516e78c87c68114ef0fc45d3 Mon Sep 17 00:00:00 2001 From: adnanoner Date: Mon, 22 Jun 2015 17:54:45 +0200 Subject: [PATCH] add $args to woocommerce_refund_created action hook #8432 --- includes/wc-order-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index 3d4e6072f74..6afa9295f51 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -726,7 +726,7 @@ function wc_create_refund( $args = array() ) { do_action( 'woocommerce_order_partially_refunded', $args['order_id'], true, $refund_id ); } - do_action( 'woocommerce_refund_created', $refund_id ); + do_action( 'woocommerce_refund_created', $refund_id, $args ); } // Clear transients